Response Codes

400 - Problem with the request

Examples:

  • the accept-language header includes an unsupported language
  • the request structure is invalid (e.g., missing fields, fields that are not part of the schema, wrong type of the value in a field)

401 - Requester is not authenticated

Example: no token was passed with the request or the token has expired

403 - Requester is not authorized to perform a certain action

Example: request for amenities when the requester does not have access to amenities

404 - Requested endpoint not found

Example: requested endpoint contains an invalid path

500 - An unexpected error occurred when processing the request

502 - An unexpected error occurred within gateway

504 - The gateway has reached the maximum time limit for waiting on the backend (timeout)