Skip to main content

Module problem

Module problem 

Source
Expand description

RFC 9457 Problem Details (application/problem+json) error responses (governed by rest-api-standards.sot.md RA-ERR-1..5).

Includes message and documentation_url extension members for GitHub-class client compatibility, plus errors[] for 422 field validation failures.

Structs§

FieldError
Single field validation error included in 422 Unprocessable Entity problems.
ProblemDetail
RFC 9457 Problem Details payload with GitHub-class compatibility extensions.

Constants§

PROBLEM_BASE_URI
PROBLEM_JSON_CONTENT_TYPE

Functions§

bad_request
conflict
forbidden
method_not_allowed
not_found
parse_json_body
Parse a JSON request body strictly (RA-ERR-4):
problem_response
Build an RFC 9457 application/problem+json HttpResponse.
problem_response_with_options
Build an RFC 9457 application/problem+json response with optional field errors, transition ok: false flag, and extra HTTP headers (such as Allow or Retry-After).
unauthorized
unprocessable_entity
unsupported_media_type