Status Codes

As you make these requests, you'll see responses indicating what's happening on the other side of the wire. The following is a list of common status codes you'll see in response to the Commerce API, and what they mean.

Status CodeMeaningDescription
200OKThe request was successful and the response body contains the representation requested.
201CreatedThe request was successful, we created a new resource and the response body contains the representation, or in some cases the unique identifier for the resource created.
204No ContentThe request was successful but there is no response to display.
401UnauthorizedThe supplied credentials, if any, are not sufficient to access the requested resource.
404Not FoundThe requested resource wasn't found.
500Internal Server ErrorWe couldn't return the representation due to an internal server error - this one is The Commerce API's fault!
422Unprocessable EntityIndicates that the server understands the content type of the request entity, and the syntax of the request entity is correct, but it was unable to process the contained instructions. Typically occurs when a resource is in a status that prohibits the requested action.