User:APaskulin (WMF)/Sandbox/Status

The REST API uses HTTP status codes to indicate the success or failure of an API request. In general, the API returns a 200 status code for a successful request and a 4xx or 5xx status code for a failed request. Although status codes and response messages can vary between endpoints (see the API reference), here are a few common status codes and responses returned by the API.

Error responses
4xx and 5xx responses include a JSON response object with information about the error. Here's an example of a 404 error response.

Depending on the error, 4xx and 5xx responses can include additional information, such as in the event of an edit conflict or unsupported content type. See the API reference for errors specific to each endpoint.