exceptions¶
BadRequest
¶
400 Bad Request
Forbidden
¶
403 Forbidden
HTTPException
¶
This abstract class makes it easier to subclass FastAPI's HTTPException with new status codes.
It can also be useful when testing requires a string representation of an exception that contains the HTTPException detail string, rather than the standard Python exception message.
Attributes:
Name | Type | Description |
---|---|---|
status_code |
int |
The HTTP status code accompanying this exception. |
title |
str |
A descriptive title for this exception. |
InternalServerError
¶
500 Internal Server Error
NotFound
¶
404 Not Found
NotImplementedResponse
¶
501 Not Implemented
UnprocessableEntity
¶
422 Unprocessable Entity
VersionNotSupported
¶
553 Version Not Supported