Erros and Codes
The CommodityPriceAPI returns error status using both conventional HTTP codes and errorMessages
within
the JSON response body.
The status
Property
API responses contain an status
field of type string. It is used to report the status of the request.
The message
Property
API responses contain an message
field of type string.
This field is used to report problems such as account overage and invalid parameters.
HTTP Status Codes
The API also returns success and error status via the HTTP
status codes below.
Code | Status | Description |
---|---|---|
200 | Success | successfully processed the request |
400 | Bad Request | Something is wrong with request and it cannot be processed. This can be invalid JSON or invalid parameters options. |
402 | Usage error | The API key has reached the maximum allowed requests. |
403 | Forbidden | Invalid API key or the API key doesn't have permissions to perform the request. |
404 | Not Found | The requested resource doesn't exist. |
500 | Internal Server Error | A server error occured and the request was not able to be processed. |