Force the API to return any standard HTTP error code using ?_status=... or the X-Simulate-Status header. Test React error boundaries, form validation errors, authorization fallbacks, and server outage alerts.
Select a target status code and click "Send" to inspect the generated RFC-compliant error payload:
| Code | Standard Name | Typical Trigger Scenario | Recommended Frontend Action |
|---|---|---|---|
| 400 | Bad Request | Malformed JSON body or invalid query syntax. | Display inline form field validation errors. |
| 401 | Unauthorized | Missing or expired JWT bearer token. | Trigger token refresh or redirect to login. |
| 403 | Forbidden | User lacks required RBAC role permissions. | Show "Upgrade Plan" or permissions banner. |
| 404 | Not Found | Target resource ID does not exist in dataset. | Render 404 empty state page with navigation. |
| 429 | Too Many Requests | Rate limit window exceeded. | Read Retry-After and pause requests. |
| 500 | Internal Server Error | Uncaught backend exception or database failure. | Trigger React Error Boundary fallback view. |
| 503 | Service Unavailable | Scheduled maintenance or downstream outage. | Activate circuit breaker and retry with backoff. |
Production patterns for catching simulated errors gracefully in modern web apps:
Simulate HTTP 429 Too Many Requests and parse compliant Retry-After headers.