Errors

KEYZY uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the 2xx range indicate success. Codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted, a charge failed, etc.).

KEYZY will respond with the following messages in case of errors in the endpoint request.

{
  "error": {
    "message": "You are not authorized!",
    "status_code": 401
  }
}
{
  "error": {
    "message": "Sku does not exist!",
    "status_code": 404
  }
}
{
  "error": {
    "message": "You do not have any free licenses for this sku. Please generate new licenses for this sku!",
    "status_code": 403
  }
}
{
  "error": {
    "message": "Product does not exist!",
    "status_code": 404
  }
}
{
  "error": {
    "message": "Serial does not exist or registered!",
    "status_code": 404
  }
}