Error Response

Error Response

Structure

Level 

Tagname in Inflight CIM 

Element 

Condition 

Multiplicity 

type 

XSD rules 

Mapping to Error response 

1

Error

 

 

1..*

 

 

 

2

Description

 

 

0..1

String

 

See below mapping based on Condition

2

errorInputPath

 

 

0..1

String

 

 

2

errorOutputPath

 

 

0..1

String

 

 

2

id

 

 

0..1

String

 

 

2

name

 

 

1..1

String

 

See below mapping based on Condition

2

severity

 

 

1..1

Severity

valueset

 

See below mapping based on Condition

Values ERROR, WARNING, INFO

Input error response codes

Endpoint

Condition 

HTTP 

Status Code 

Error description 

Error name 

Error severity 

Flights

Request structure should have all the input parameters empty

(or)

atleast one of origin or destination is present with startRange

If the above combination is not in the request, then error is returned

404

Not Found

NOT FOUND

Error

Flights

startRange is NOT less than endRange when endRange is provided

400

Invalid Date Range

BAD REQUEST

Error

Flights

startRange or endRange is not between  Current date – 180 days and Current Date + 60 days

416

Requested Date Not within Range

INVALID RANGE

Error

Flight Status

Flight-id {id} (part of request parameter in href) invalid:

yyyyMMdd+carrierCode+flightNumber+operationalSuffix

example: 20171231+KL+0641

 

 

 

404

Not Found

NOT FOUND

Error

Flight Status

Departure Date not within CurrentDate -180 days and Current Date + 60 days

416

Request Date Not Within Range

INVALID PARAMETER

Error

 Output error response codes

Endpoint

Condition 

HTTP  

Status Code 

Error Description 

Error name 

Error severity 

Flight Status

Fetching trajectory data from cache failed

200

Flight Path cannot be retrieved

FLIGHT PATH NOT RETURNED

WARNING

Flights

Any other ProvideOperationalFlight Response with severity "WARNING" with Error Code “2”

200

PAFI Failed, data from Flight service response

PARTIAL FAILURE

WARNING

 

 

 

 

 

 

  • Flights
  • Flight Status

Invalid Request; 5 digit flightnumber etc..

404

No handler found for GET /operations/operational-flight/flights/20180608+FG+12345 ACCEPT application/hal+json;version=com.afkl.operationalflight.v3 

NOT FOUND

ERROR

  • Flights
  • Flight Status

POF response with Error Code 1 with description ‘Range.start and Range.end must be within: ’

416

Requested Date Not within Range

INVALID RANGE

ERROR

  • Flights
  • Flight Status

POF response with Error Code 2 with description ‘FLIGHT NOT FOUND’

404

No Flights Found For the Requested Criteria

FLIGHT NOT FOUND

ERROR

  • Flights
  • Flight Status

If NO  flights are returned as Flight is Full Blacklisted for status

403

Flight Details cannot be retrieved

FLIGHT DETAILS BLOCKED

ERROR

  • Flights
  • Flight Status

If more then 10 airlineCodes are provided

400

Requested carrier codes are limited to 10

BAD REQUEST

INFO

  • Flights
  • Flight Status

If date range is not valid

400

Invalid date range

BAD REQUEST

INFO

  • Flights
Invalid IATA departure or arrival city provided   404 Can not find city CITY CODE NOT FOUND INFO

 

 

 

 

 

 

  • Flights
  • Flight Status

Any other ProvideOperationalFlight.Fault

500

Request Failed: Internal Server Error

INTERNAL ERROR

ERROR

  • Flights
  • Flight Status

1)Technical request failure, server encountered an unexpected condition

2)Any SOAP-ENV: Fault

500

Request Failed: Internal Server Error

INTERNAL ERROR

ERROR

  • Flights
  • Flight Status

Service POF response takes more than 90 seconds

504

Request Failed: Timeout

INTERNAL ERROR

ERROR

Docs Navigation