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 Code

Meaning

Description

200

OK

The request was successful and the response body contains the representation requested.

201

Created

The 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.

204

No Content

The request was successful but there is no response to display.

401

Unauthorized

The supplied credentials, if any, are not sufficient to access the requested resource.

404

Not Found

The requested resource wasn't found.

500

Internal Server Error

We couldn't return the representation due to an internal server error - this one is The Commerce API's fault!

422

Unprocessable Entity

Indicates 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.


Did this page help you?