Error codes

Terra uses HTTP response status codes to indicate the success or failure of your API requests. If your request fails, Terra returns an error using the appropriate status code.

Error responses

Field name

Type

Description

status

String

Short string describing the status of the request. Generally "success" or "error".

message

String

Short human-readable string giving more context on the reason the error occurred.

cause

Optional<Object>

Optional cause of the error, for example if a provider's server is offline and not returning us any data.