Picture

Error format

Errors are usually rendered like this:

{

  “statusCode”: 404,

  “message”: “Contract not found”

}

Some other information may be added in custom attributes, such as:

406 error code:

{

  "statusCode": 406,

  "message": "Not acceptable, please check possible values for each key",

  "Infos": [

    "Field_1",

    "Field_2",

    "..."

  ]

}

422 error code:

{

  "statusCode": 422,

  "message": "Unprocessable entity",

  "Lenght exceeded 255 characters": [

    "Field_1",

    "Field_2",

    "..."

  ],

  "MissingParameters": [

    "Field_1",

"Field_2",

    "..."

  ],

"NonNullableParameters": [

 "Field_1",

"Field_2",

"..."

],

"WarningDate UTC (yyyy-MM-ddThh:mm:ss.fffZ OR yyyy-MM-ddThh:mm:ssZ)": [

"Field_1",

"Field_2",

"..."

],

"WarningDate (dd/MM/yyyy)": [

"Field_1",

   "Field_2",

"..."

]

}

Check the documentation of the API you are interfacing to, to identify the possible responses for each endpoint.

Back to APIs