Error Handling

The errors are returned using standard HTTP error code syntax.

HTTP Error Code Description Error Response
400 Bad Request Invalid Request
{
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
400 Parameters required are missing The required parameters are not specified
 {
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
404 User not found User not found
{
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
404 Record Not Found Record Not Found
{
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
500 Internal Server Error Internal Server Error occurred
{
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
500 Invalid Request Invalid request
{
  "errorCode": "string",
  "errorType": "string",
  "errorMessage": "string",
  "errorDetails": "string"
}
GEN-7001 Request not readable Request not readable
{
   "errorCode": "GEN-7001",
   "errorType": "Error",
   "errorMessage": "Request Not Readable",
   "errorDetails": ""
}