aviowiki
  • Introduction
  • Authentication
    • Users
    • API Tokens
    • Authorisation
  • Conventions
    • Data format
    • aviowiki IDs
    • Pagination
  • Errors
  • Reward Points
  • Open Data
    • Introduction
    • Definition
  • Data Models
    • Airport
    • Authority
    • Availability
    • Aircraft Position
    • Coordinates
    • Region
    • Country
    • Governing District
    • Runway
    • Provider
    • Generic Product
    • Fuel Product
    • Fuel Fee
    • Webhook
    • Error
    • Operational Note
      • Airport Operational Note
      • Country Operational Note
  • Free Endpoints
    • Limitations
    • Free airport endpoints
      • Airport data
      • Searching airports
  • Authenticated Endpoints
    • Airport endpoints
      • Searching airports
      • Airport data
      • Authorities at an airport
      • Availability of an airport
        • Aerodrome Rescue and Fire Fighting availaibility
        • Air Traffic Control availability
        • Customs, Immigration and Quarantine facilities availability
        • Movement availability
      • Runways at an airport
      • Providers at an airport
      • Weather at an airport
      • Sun times at an airport
      • Operational notes at an airport
    • Aircraft endpoints
    • Aircraft position endpoints
    • Flight endpoints
    • Runway endpoints
      • Runway data
    • Provider endpoints
      • Provider data
      • Availability of a provider
      • Country of a provider
      • Pictures of a provider
      • Logo of a provider
      • Products of a provider
      • Fuel products of a provider
    • Operational Note endpoints
      • Operational Note data
    • Retrieve aircraft position
  • Release log
Powered by GitBook
On this page

Was this helpful?

  1. Data Models

Error

PreviousWebhookNextOperational Note

Last updated 3 years ago

Was this helpful?

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:

Property

Type

Description

timestamp

string

The formatted date and time of when the error occurred on the server. For example 2019-08-30T13:23:32.163+0000

status

number

The HTTP response code returned. For example 403

error

string

A description of the HTTP response code returned.

message

string

A human-readable message explaining what generated the error.

path

string

The resource path that was requested. This does not include the base URL. For example /airports/search.

Example

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