Description

Climate Forte Docs

Error Handling

Understand how our API handles errors, including HTTP status codes, error response formats, and examples of common error scenarios.

Our API uses conventional HTTP response codes to indicate the outcome of an API request.
Codes in the 2xx range indicate success, 4xx indicates client-side issues (such as missing or invalid parameters), and 5xx indicates server-side errors.

API error responses are returned in JSON format, and the HTTP status code is included in the response headers.
While the error message and type may vary, the error code ID and its meaning remain consistent.

We aim to fail gracefully whenever possible. When an issue is encountered, the API returns the best available data along with additional warnings, known as soft errors. Hard errors are also reported in a structured format.

Hard Errors Example

{
  "code": 404001,
  "type": "Not Found",
  "message": "The insight associated with the request could not be found: 38f689d83c264eb0b084ba095f2ea332."
}

4xx Range

400 Bad Request

To learn more about usage limits (rate limiting), refer to the Usage Limiting section.

CodeTypeDescription
400001Invalid Body ParametersThe entries provided as body parameters were not valid for the request.
400002Invalid Query ParametersThe entries provided as query parameters were not valid for the request.
400003Missing Required Body ParametersThe request is missing some required body parameters.
400004Missing Required Query ParametersThe request is missing the required query parameters.
400005Rule ViolationThe request violated some logic requirement.
400006Missing Required Header ParametersThe request is missing some required header parameters.
400007Invalid Path ParametersThe entries provided as path parameters were not valid for the request.

401 Unauthorized

CodeTypeDescription
401001Invalid KeyThe method requires authentication, but the key was not provided or is invalid.

402 Payment Required

CodeTypeDescription
402001Insufficient TokensAdding additional tokens is required.

403 Forbidden

CodeTypeDescription
403001Access DeniedThe authentication token in use cannot access the requested resource.
403002Account LimitThe plan limit for a resource has been reached.
403003Forbidden ActionThe plan is restricted and cannot perform this action.

404 Not Found

CodeTypeDescription
404001Not FoundA resource ID was not found.

5xx Range

500 Internal Server Error

CodeTypeDescription
500001UnknownPossibly a temporary issue due to downtime. Retry the operation later.

503 Service Unavailable

CodeTypeDescription
503001UnavailableService is currently unavailable. Please wait and retry the operation. Supporting header: Retry-After

Request ID

Each API request has a unique request identifier. You can find this value in the response headers under X-Correlation-ID.

If you need support with a specific request, providing this identifier will ensure the fastest resolution.