Previous Topic: ExampleNext Topic: HTTP Status and Error Codes


HTTP Status and Error Codes

Every HTTP response contains an HTTP status code. Successful HTTP response code numbers range from 200 to 399. Standard HTTP error response code numbers range from 400 to 599.

The following list shows the successful and error code numbers that the REST API returns for each of the HTTP methods.

GET (single)

200, 400, 401, 404, 409

GET (collection)

200, 400, 401

PUT

200, 400, 401, 404, 409

DELETE

204, 400, 401, 409

POST

201, 400, 401, 409

Note: For the PUT and DELETE operations, the API does not try to determine the validity of the ID initially. Instead, the API tries to run the update and delete queries directly. If an error occurs, the API returns the 409 Conflict code. If the API returns a 404 Not Found code in this situation, performance degrades.

In addition, the following error messages return under the following cases: