Back to httpstatuses.net

REST API Status Code Chooser

Pick the request outcome and this tool suggests the status code a REST API should return.


REST API status code rules

Common questions

Should validation errors use 400 or 422?

Use 400 when the request is malformed. Use 422 when the request shape is valid but the submitted domain data cannot be processed.

Should missing authentication use 401 or 403?

Use 401 when the caller is not authenticated. Use 403 when the caller is authenticated but still not allowed.


HTTP status code lookup
REST API status code chooser
cURL command generator
By Ping Now, a website/API/service uptime monitor
Data from Wikipedia