HTTP Status Codes
HTTP status codes break down into the following categories:
- 100-199: Informational messages
- 200-200: The message was successful
- 300-399: Redirection
- 400-415: Error on the client side
- 500-599: Error on the server side
Recognizing the general numeric category could be helpful in tracking down the source of an error.
The table below provides information on some of the more common HTTP error codes you might encounter when working with the Enterprise API Platform API. For a full list of HTTP error code numbers and meanings, refer to the HTTP spec.
||The request completed successfully.
||Successful create (add) request.
||The server successfully processed the request, but is not returning any content.
||Redirect found. The client should use the URL given in the Location header.
|Client error codes:
||Returned if the client sends invalid parameters or body content. For example, you might get this response if there is a typo in the request URL, or if you send malformed XML in your request (if applicable).
||Authentication (login) is required for this operation. For example, perhaps a required cookie was not included.
||Authentication is required.
||Resource not found
||The information in the path, parameters, or message header/body didn't match up to any available resource at the specified URL. For example, the message has the wrong content-type, a typo in the URL, or a wrong accept-header; or you might get this error if a specified resource, such as an app, API, or rating, does not exist.
||Method Not Allowed
||The request is attempting to do something not allowed by this operation. For example, an Accept header that's not valid for the operation might cause this error, or an HTTP verb that's not supported for the operation.
Returned if the response format, as specified in the accept header, does not match the content type specified in the request.
For example, you might get this response if you set the Accept header to text/xml for an operation that only returns an application/json response.
||Invalid action for current resource state
||The action attempted was not valid for the current state. For example, the message is attempting to cancel an API contract that doesn't currently have a status of Approved.
||Unsupported Media Type
||Returned if the request is using a media type not supported by the method.
|Server error codes:
||Internal Server Error
||An error occurred while processing the call. This error is generally returned for any business logic failure that doesn't fit into any of the defined categories above.