Responses from the API return an HTTP Status based on their success or failure. A successful request will result in a 200 response, while failures may result in a 401 for invalid credentials or 404 when trying to access an object with an invalid ID. A full list of status codes and their meaning can be found below.
It is important to check the status code for all responses from the API. Any responses that are outside of the 200 range should be checked for errors before making the request again.
The request was successful, no futher action required
The object was created and will be returned in the data field
The request was invalid and has errors that need to be corrected. Errors will be returned in the response with additional details. (see Errors page)
Unauthorized API access, verify CDN # and API keys are correct
The request tried to access an objects that do not belong to it or do not exist
Object being requested could not be found
Attempting to delete an object without an ID
The request was not able to be processed. This can indicate that the HTTP method is not valid or an error has occured.