Skip to content
Last updated

Error codes represent the error code returned by the API. Then general structure of an error is as follows:

Important warning

More error codes will be added over time, initial error codes are based on generic HTTP status codes.

Error Codes

Below is a non exhaustive list of error codes that you may encounter from Quiqup APIs

HTTP StatusError CodeType
400invalid_argumentinput
400failed_preconditioninternal
401unauthenticatedunauthorized
403permission_deniedforbidden
404not_foundnot_found
409already_existsinternal
429resource_exhaustedinternal
499canceledinternal
500internalinternal
500internalintegration
500data_lossinternal
500unknowninternal
503unavailableinternal
504deadline_exceededinternal

Field Errors

When there are problems with specific fields, the error will contain field errors. For example if we have a payload like this:

{
  "name": "string",
  "email": "email",
  "address": {
    "street": "string"
  }
}

Then we could expect errors like this, telling you which fields are invalid and the reason why:

{
  "status": "invalid_argument",
  "code": "invalid_argument",
  "message": "Invalid Input",
  "details": {
    "type": "input",
    "fields": [
      {
        "field": "name",
        "message": "required"
      },
      {
        "field": "email",
        "message": "email"
      },
      {
        "field": "address.street",
        "message": "required"
      }
    ]
  }
}