documentation
Errors

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.


CodeStatusDescription
200Successsuccessfully processed the request
400Bad RequestSomething is wrong with request and it cannot be processed. This can be invalid JSON or invalid parameters options.
402Usage errorThe API key has reached the maximum allowed requests.
403ForbiddenInvalid API key or the API key doesn't have permissions to perform the request.
404Not FoundThe requested resource doesn't exist.
500Internal Server ErrorA server error occured and the request was not able to be processed.