core/exceptions library

Exceptions / Errors

BadRequestException
Thrown when the request is malformed (400).
ConflictException
Thrown when a conflict occurs during state mutation (409).
ForbiddenException
Thrown when the authenticated user lacks permission (403).
HttpException
Base class for all HTTP exceptions that can be rendered as JSON responses.
InternalServerErrorException
Thrown when an unhandled server error occurs (500).
MethodNotAllowedException
Thrown when the HTTP method is not allowed for the endpoint (405).
NotFoundException
Thrown when a resource is not found (404).
ServiceUnavailableException
Thrown when the server is temporarily unable to handle requests (503).
TooManyRequestsException
Thrown when the rate limit is exceeded (429).
UnauthorizedException
Thrown when authentication is required but missing or invalid (401).
ValidationException
Thrown when request data fails validation (422).