400 Bad request - Invalid rest URL or invalid content (JSON)
401 Unauthorized - You tried to access resource requires authentication and you are not authenticated or your token is invalid or expired
403 Forbidded - You are authorized but you are'nt permitted to access this resource
404 Not found - Resource not found
405 Method Not Allowed - You are used invalid method. (Valid methods: POST, GET, PUT/PATCH, DELETE)
408 Request timeout - Resource request timeout
409 Conflict - Duplicity
410 Gone - Resource not available (deleted, invalid content, blocked, ...)
422 Unprocesable Entity - Missing required fields or data validation failed
429 Too Many Requests - Service is busy (database, socket, load)
Server error
500 Internal server error - General error while processing request or resource
501 Not Implemented - REST URL are exists but it's not implemented
503 Service Unavailable - Service not available for overload or mantenaince
Rest additional error codes and messages in JSON
If client request process fails or it's invalid, then server returns an error HTTP response (status 4xx, 5xx) and JSON payload is object error. Payload looks following:
Meta
Related: #2
REST status codes and messages
HTTP status
Success
Client error
Server error
Rest additional error codes and messages in JSON
If client request process fails or it's invalid, then server returns an error HTTP response (status 4xx, 5xx) and JSON payload is object
error
. Payload looks following:Error types