Errors

For non 2XX responses, we follow a JSON dictionary with the following keys:

  • statusCode

  • message

  • error

The message may be a string or an array of strings. Here are two examples:

{
  "statusCode": 400,
  "message": "Only one of 'blockNumber' or 'timestamp' can be set",
  "error": "Bad Request"
}

{
  "statusCode": 400,
  "message": [
    "Only one of 'blockNumber' or 'timestamp' can be set"
  ],
  "error": "Bad Request"
}

Last updated