Errors

Learn more about error codes and how to resolve them.

Herald uses HTTP response status codes to indicate the success or failure of an API request.

  • Codes in the 2xx range indicate success.
  • Codes in the 4xx range indicate an error that failed given the information provided.
  • Codes in the 5xx range are rare and indicate an error with Herald.

For failed requests (codes in the 4xx or 5xx range), Herald will send back an array of error objects. This array of error objects will contain all known errors for the most relevant HTTP status code.

HTTP status codes

Status CodeDescription
200 (OK)Everything worked as expected.
400 (Bad Request)The format or content of your request is invalid.
401 (Unauthorized)No valid API key provided.
403 (Forbidden)A valid API key was provided, but the associated account does not have access to the requested resource.
404 (Not Found)The resource doesn't exist.
409 (Conflict)The request conflicts with the current state of the target resource.
429 (Too Many Requests)Too many requests hit the API too quickly. Our current limits in both Sandbox and Production are 120 requests per minute.
500 (Server Error)Something went wrong with Herald.

Error schema

See our full error schema in our API reference.

id string
A unique error ID for error tracking and support.
code string
A short string indicating the error reported.
Allowed values:
unauthorized not_found http_not_supported invalid_method invalid_format invalid_request internal_server_error
message string
Details about the specific manifestation of the error.
Example:
Unauthorized
display_message string
A user-friendly representation of what caused the error, safe to be formatted on a front-end. Currently only includes a value for errors caused by risk and coverage parameters.
Example:
length must be 5 characters long
path string
If the error is parameter-specific, included a path to the specific parameter. Useful for rendering error messages below inputs on the front end. Only includes a value for errors causes by risk and coverage parameters.
Example:
risk_values[2].value.postal_code

Example:

Copied
{
    "errors": [
        {
            "id": "a328ffb9-631a-4c21-9d4e-9f3a213b7bcd",
            "code": "invalid_format",
            "message": "\"risk_values[2].value.postal_code\" length must be 5 characters long",
            "display_message": "length must be 5 characters long",
            "path": "risk_values[2].value.postal_code"
        }
    ]
}

Error codes

CodeHTTP StatusDescription
http_not_supported400Request was made over http instead of https.
invalid_method400An invalid HTTP method was used for the path provided.
invalid_format400The request was not in a valid format.
invalid_request400The content of your request was not valid.
unauthorized401No valid bearer token provided.
forbidden403Access is restricted.
not_found404Attempt to get a resource that does not exist.
internal_server_error500Herald error.