Skip to content

Glossary: Building APIs with FastAPI

JSONResponse

A FastAPI class, from `fastapi.responses`, that builds a JSON response by hand from a status code and content. It is useful when you need full control of the response, such as inside an exception handler.

Where the book teaches it

Related terms

Exception handlerHTTP status codes