Error

Should an error occur with your request, the aviowiki API will reply with an HTTP response code in the 4xx or 5xx range, depending on the type of error.

Errors in the 4xx range relate to client errors, meaning that something unexpected happened with data supplied or an action requested by the client. This could be bad format or invalid authentication for example.

Errors in the 5xx range relate to server errors, meaning that an unexpected exception happened in our backend while trying to serve your request.

When an error code is returned, the body of the response will contain a JSON object with the following properties:

Example

{
  "timestamp": "2019-08-30T13:23:32.163+0000",
  "status": 403,
  "error": "Forbidden",
  "message": "Token expired",
  "path": "/airports/search"
}

Last updated