Connect

Error Codes

Learn about Directus error codes - understand what each code means, from validation failures to rate limits exceeded. Troubleshoot issues with your API requests and resolve errors efficiently.

Below are the global error codes used within Directus, and what they mean.

Error CodeStatusDescription
FAILED_VALIDATION400Validation for this particular item failed.
FORBIDDEN403You are not allowed to do the current action.
INVALID_TOKEN403Provided token is invalid.
TOKEN_EXPIRED401Provided token is valid but has expired.
INVALID_CREDENTIALS401Username / password or access token is wrong.
INVALID_IP401Your IP address isn't allow-listed to be used with this user.
INVALID_OTP401Incorrect OTP was provided.
INVALID_PAYLOAD400Provided payload is invalid.
INVALID_QUERY400The requested query parameters can not be used.
UNSUPPORTED_MEDIA_TYPE415Provided payload format or Content-Type header is unsupported.
REQUESTS_EXCEEDED429You have exceeded the rate limit.
ROUTE_NOT_FOUND404Endpoint does not exist.
SERVICE_UNAVAILABLE503Could not use external service.
UNPROCESSABLE_CONTENT422You tried doing something illegal.

To prevent revealing which items exist, all actions for non-existing items will return a FORBIDDEN error.