Expand description
Error codes, the ApiError handlers return, and the JSON:API error documents every error
response becomes.
Structs§
- ApiError
- An error with a Fusion Stack error code, rendered as one JSON:API error object. Return it from
a handler or middleware with
?orErr(..)?; it converts intolaravel::Error.
Enums§
- ApiError
Code - The error codes Fusion Stack itself sends. Their statuses and titles come from the shared error table, so both server packages send the same ones.
Constants§
- CONTENT_
TYPE - The media type of Fusion Stack error documents.
Traits§
- Error
Code - A machine-readable error code with the HTTP status it is sent with and a short title. An
application implements it for its own codes, such as
invoice_not_finalised.