4xxerrors are client errors, which are informative and actionable. They communicate a mistake to the user and suggest fixes.5xxerrors are unexpected server-side errors.
Description column.
General error format
HTTP status codes do not always provide sufficient information to determine the cause of the error. Since the status code is part of the header of the response, the body of response contains additional, Circle-specific, error information. For example, if a request contains an invalid parameter, the response includes the following: HeaderHTTP/1.1 400 Bad RequestContent-Type: application/json
Body
JSON
Extended error format
In some cases, the response includes extended information about the cause of the error. For example, if a request doesn’t include a value for a required parameter, the response includes a detailed error message: HeaderHTTP/1.1 400 Bad RequestContent-Type: application/json
Body
JSON
General errors
This section describes some common extended error messages you might encounter using Wallets and Contracts APIs. The following errors are general errors that can be returned for any request.| Error Code | HTTP code | Error Message | Description |
|---|---|---|---|
-1 | 400 | Something went wrong | An unknown error occurred while processing the API request. |
3 | 403 | Forbidden | The API key used does not have access to the requested endpoint. |
Invalid requests
A400 HTTP status code indicates that the request is invalid or malformed.
When the request is invalid, the Circle-specific error code is 2. The
following table describes the common error messages that can be returned for
invalid requests.
| Error Code | HTTP code | Error Message | Description |
|---|---|---|---|
2 | 400 | Invalid Entity | There is an error in the JSON format passed in the request. |
2 | 400 | Fail to bind request to parameter: invalid UUID format | The parameter must be in UUID format. |
2 | 400 | Error: Field validation | One of the fields in the request is invalid. |
2 | 400 | Error: Field validation for blockchain failed on the blockchain tag | The blockchain does not exist. Try again with a supported blockchain. |
2 | 400 | Error: Field validation for gasLimit failed on the required_without tag | If feeLevel is provided, gasLimit should be set to NULL. If feeLevel is NULL, gasLimit must be provided. |
2 | 400 | Error: Field validation for parameter failed on the min tag | The parameter is not in the correct format. |
2 | 400 | Cannot unmarshal | The JSON body of the request is not valid. |
2 | 400 | INVALID: parameter empty | The parameter is required for this request. Try the request again with this parameter. |
Compliance Engine errors
This section includes the errors that can be returned from Compliance Engine API requests.Standalone screening errors
| Error code | HTTP code | Error message | Description |
|---|---|---|---|
280001 | 400 | Unsupported blockchain | Provided blockchain either does not exist or is not supported. |
280002 | 400 | Invalid blockchain address | Provided blockchain address is not valid. |