Skip to content

Error Payload(s)#

Error Payload(s) for v1.0 and v2.0#

Authentication Errors#

Invalid Org Details#

The header value of key X-FLYNN-N-ORG-ID is invalid.

Http Status Code: 403

{
    "error": {
        "message": "err-invalid-org",
        "type": "Authorization",
        "args": {}
    }
}

Expired Token#

The header value of key X-FLYNN-N-USER-TOKEN is expired.

Http Status Code: 403

{
    "error": {
        "message": "err-expired-token",
        "type": "Authorization",
        "args": {}
    }
}

Invalid Token#

The header value of key X-FLYNN-N-USER-TOKEN is invalid.

Http Status Code: 403

{
  "error": {
    "message": "err-invalid-token",
    "type": "Authorization",
    "args": {}
  }
}

Token Limit Exceed#

The maximum of 10 tokens can be generated at a time. If user trying to create more than 10 token then will get below error.

Http Status Code: 401

{
  "error": {
    "message": "err-active-tokens-limit-exceeded",
    "args": {}
  }
}

Encryption/Decryption Errors#

Invalid REK#

Server was unable to extract REK from the header. RSA decryption failed due invalid value for the header key X-FLYNN-S-REK.

Http Status Code: 500

{
  "error": {
    "message": "err-unable-to-decrypt-message-with-key",
    "type": "Runtime",
    "args": {}
  }
}

Invalid Sensitive Data#

Server was unable to decrypt AES encrypted value. Invalid value was sent in the request. Value was sent either in the header, with key matching the following pattern X-FLYNN-S-* or the request payload.

Http Status Code: 500

{
  "error": {
    "message": "err-aes-decryption-failed",
    "type": "Runtime",
    "args": {
      "details": {
        "type": "Runtime"
      }
    }
  }
}

Error Payload(s) v3.0#

Authentication Errors#

Invalid Org Details#

The header value of key X-FLYNN-N-ORG-ID is invalid.

Http Status Code: 403

{
    "status": "0",
    "data": null,
    "error": {
        "message": "err-invalid-org",
        "type": "Authorization",
        "args": {}
    },
    "info": null,
    "additionalInfo": null,
    "alert": null
}

Expired Token#

The header value of key X-FLYNN-N-USER-TOKEN is expired.

Http Status Code: 403

{
    "status": "0",
    "data": null,
    "error": {
        "message": "err-expired-token",
        "type": "Authorization",
        "args": {}
    },
    "info": null,
    "additionalInfo": null,
    "alert": null
}

Invalid Token#

The header value of key X-FLYNN-N-USER-TOKEN is invalid.

Http Status Code: 403

{
    "status": "0",
    "data": null,
    "error":{
        "message": "err-invalid-token",
        "type": "Authorization",
        "args": {}
    },
    "info": null,
    "additionalInfo": null,
    "alert": null
}

Token Limit Exceed#

The maximum of 10 tokens can be generated at a time. If user trying to create more than 10 token then will get below error.

Http Status Code: 401

{
    "status": "0",
    "data": null,
    "error":{
        "message": "err-active-tokens-limit-exceeded",
        "args": {}
    },
    "info": null,
    "additionalInfo": null,
    "alert": null
}

Encryption/Decryption Errors#

Invalid REK#

Server was unable to extract REK from the header. RSA decryption failed due invalid value for the header key X-FLYNN-S-REK.

Http Status Code: 500

{
  "status": "0",
  "data": null,
  "error":{
    "message": "err-unable-to-decrypt-message-with-key",
    "type": "Runtime",
    "args": {}
  },
  "info": null,
  "additionalInfo": null,
  "alert": null
}

Invalid Sensitive Data#

Server was unable to decrypt AES encrypted value. Invalid value was sent in the request. Value was sent either in the header, with key matching the following pattern X-FLYNN-S-* or the request payload.

Http Status Code: 500

{
    "status": "0",
    "data": null,
    "error":{
        "message": "err-aes-decryption-failed",
        "type": "Runtime",
        "args": {
            "details": {
            "type": "Runtime"
            }
         }
     },
    "info": null,
    "additionalInfo": null,
    "alert": null
}