Success codes
On a successful request, the response status will be one of the following:| Code | Name | When returned |
|---|---|---|
200 | OK | Successful GET, PATCH, or DELETE request. |
201 | Created | Successful POST that creates a new resource. The response body contains the newly created entity in JSON format. |
204 | No Content | Successful request with no response body (e.g., DELETE). |
Error codes
When an error occurs, the response status code indicates the type of error:| Code | Name | Description |
|---|---|---|
400 | Bad Request | The request is malformed, such as misformatted JSON in the request body. |
401 | Unauthorized | No or invalid authentication details are provided. |
403 | Forbidden | Authentication succeeded but the authenticated user does not have access to the resource. |
404 | Not Found | A non-existent resource was requested. |
500 | Internal Server Error | The server encountered an unexpected condition that prevented it from fulfilling the request. |