Error Response

Status code is 400 or higher. Mostly ‘400’.

Error Response is JSON Object that has a key, message.

message is JSON Object that consists of msg and error_code.

Structure

key

description

message

msg

explanation about what causes the error.

error_code

code of the error.

Error Codes

While each API has different error_codes, there are also common error_codes like the below.

status code

error code

description

401

auth/not-authorized

Authoriazation value in headers is not valid. Please check your api key.

403

auth/not-authorized

Your api-key is not allowed to perform this API. Please contact our sales team.

Example
    {
      "message": {
        "msg": "not authorized",
        "error_code": "auth/not-authorized"
      }
    }