Error response format
A human-readable message describing what went wrong. Suitable for logging but not for display to end users.
A machine-readable error code. Use this field for programmatic error handling. May be absent on some error types.
Additional context about the error, such as which field failed validation or which resource was not found. Optional.
HTTP status codes
Handling errors
Common error codes
The
code field is not present on all error responses. Always fall back to the HTTP status code for error handling.