User:APaskulin (WMF)/Sandbox/Status

The MediaWiki REST API uses HTTP status codes to indicate the success or failure of an API request. You can expect to see a 200 status code for a successful request and a 4xx or 5xx status code for a failed request. Here are a few common status codes.

See the API reference for specific status codes for each endpoint and troubleshooting steps.

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.