Status Codes & Error Messages
What made this section unhelpful for you?
Status Codes
200
OK
Response to successful GET request.
201
Created
Response to successful POST request - New resource created. The body parameter of the response will include the newly created resource.
204
No Content
Response to successful DELETE request - The resource specified in the request has been successfully deleted. The body parameter of the response will NOT include the deleted resource.
400
Bad Request
Response to invalid POST request - The new resource has NOT been created. The body parameter of the response will NOT include the specified resource from the request but will include the details of the error(s) that caused the request to fail.
401
Unauthorized
Indicates that the request has not been applied because it lacks valid authentication credentials for the target resource.
404
Not Found
Response to an unsuccessful GET request or POST request that includes a specific target resource. e.g. Where the target resource does not exist or is hidden by the server.
422
Unprocessable Entity
Response to a valid but unsuccessful POST request (ie due to business rule violation) - The new resource has NOT been created. The body parameter of the response will NOT include the specified resource from the request but will include the details of the error(s) that caused the request to fail.
409
Conflict
The request could not be completed due to a conflict with the current state of the target resource. e.g. Where the resource already exists.
500
Internal Server Error
The server encountered an unexpected condition that prevented it from fulfilling the request.