--- title: Error Tester emoji: 🧪 colorFrom: red colorTo: gray sdk: gradio sdk_version: 5.28.0 app_file: app.py pinned: false license: mit --- A PyHARP example Space for exercising HARP's error handling paths. Use the dropdown controls to select the failure shape, then click Process. The app intentionally raises runtime errors, quota-looking Gradio errors, Space-status errors, or malformed output payloads so HARP can display the corresponding user-facing error. Primary mappings: - `Gradio runtime error` raises `gr.Error`, which should surface as a `GradioError::RuntimeError`. - `Python runtime error` raises `RuntimeError`, which should surface as a `GradioError::RuntimeError` when the Space is launched with `show_error=True`. - `ZeroGPU quota error` raises a quota-looking `gr.Error`, which should surface as `GradioError::QuotaExceeded`. - `Space status error` raises a message matching Hugging Face Space failure text, which HARP maps to an HTTP 503-style status failure. - `Output payload error` returns invalid or unusable output data for checking HARP's downstream output parsing and file-download handling.