HTTP Status Codes

Overview

FlightCaster tries to return the appropriate HTTP status codes on every request. Check out the wikipedia page for general information about HTTP codes. The following gives more information on specific HTTP status codes.

404 Not Found

The resource request could not be found.

When search for a flight or flights and nothing was found, a 404 may bereturned. This may mean that the server could not find any flights for the request. Note that previous versions of the API did not return a 404 but simply an empty array.

422 Unprocessable Entity

The API version specified is no longer supported. Update to a newer version of the API. This is used to notify a client that they should upgrade to the newest version.