Errors

General Payload Structure

Each error response follows a consistent JSON structure:

{
    "statusCode": <status code>,
    "message": <error message>,
    "timestamp": <timestamp> 
}

System Error

  • Status Code: 500

  • Message: "Oops! Something went wrong"

  • Example:

{
    "statusCode": 500,
    "message": "Oops! Something went wrong",
    "timestamp": "2024-01-15T07:51:01.953Z"
}

Temporary Unavailability

  • Status Code: 401

  • Message: "Please try in some time!"

  • Example:

{
    "statusCode": 401,
    "message": "Please try in some time!",
    "timestamp": "2024-01-15T07:51:01.953Z"
}

Invalid Request

  • Status Code: 401

  • Message: "Invalid Request"

  • Example:

{
    "statusCode": 401,
    "message": "Invalid Request",
    "timestamp": "2024-01-15T07:51:01.953Z"
}

Last updated