Structure your FastAPI API error responses with consistent and machine readable format using the RFC 9457 "Problem Details for HTTP APIs" standard
MIT License
Bot releases are hidden (Show)
ge
and lt
properties from generated JSON Schema for status
property of Problem
schema.Published by g0di 3 months ago
exc_type
simplified property returned in problem responses for unhandled errors (was <class 'path.to.module.YourError'>
, now path.to.module.YourError
)null
/None
values are now omitted from Problem response. Problem JSON Schema has been updated to reflect that100 <= status code < 600
) is now properly displayed in the Problem JSON SchemaPublished by g0di 3 months ago
ProblemException
for returning problem details responsesProblemResponse
objects for returning problem details responses