Skip to main content
Version: 1.5.0

Response Format

Here is the default response format, any request will having message and statusCode key properties. The error key property will shown only at 4xx and 5xx http status code.

  • Success
{"message": "string", "statusCode": 200}
  • Created
{"message": "string", "statusCode": 201}
  • Bad Request
{"message": "string", "statusCode": 400, "error": "Bad Request"}
  • Unauthorized
{"message": "string", "statusCode": 401, "error": "Unauthorized"}
  • Forbidden
{"message": "string", "statusCode": 403, "error": "Forbidden"}
  • Not Found
{"message": "string", "statusCode": 404, "error": "Not Found"}
  • Unprocessable Entity
{"message": "string", "statusCode": 422, "error": "Unprocessable Entity"}
  • Internal Server Error
{"message": "string", "statusCode": 500, "error": "Internal Server Error"}