This service provides test endpoints that return structured error responses in the application/problem+json
format, as defined in RFC 7807. It's useful for developers testing HTTP clients, middleware, error handling, logging, and observability pipelines.
Each of these returns a Problem Details JSON object with a relevant HTTP status code:
400 Bad Request
for invalid input401 Unauthorized
to test auth logic404 Not Found
when a resource is missing400
with structured field-level errors500 Internal Server Error
simulation429 Too Many Requests
for rate limitingProblem Details is a standardized way to express HTTP API errors using a machine-readable JSON format. Introduced in RFC 7807, it aims to replace ad-hoc error structures and magic strings in APIs.
Each error response contains a consistent set of fields:
type
: A URI identifying the kind of error (ideally documentation or a standard identifier)title
: A short human-readable summarystatus
: HTTP status code (e.g. 404)detail
: A detailed explanation for debugging purposesinstance
: A URI identifying the specific occurrence (like a trace ID or log link)Here’s a typical Problem Details response:
{
"type": "https://example.com/errors/invalid-input",
"title": "Invalid input",
"status": 400,
"detail": "The 'email' field is required and must be a valid email address.",
"instance": "/users/register"
}
And a validation error example with extended fields:
{
"type": "https://example.com/errors/validation",
"title": "Validation Failed",
"status": 400,
"detail": "Multiple validation errors occurred.",
"instance": "/signup",
"errors": {
"email": ["Email is required.", "Email must be valid."],
"password": ["Password must be at least 8 characters."]
}
}
If you're building HTTP APIs or consuming them, this service helps you: