Unable to see or retrieve API response codes

When using your online TFL API, I get the data response but I am not seeing the Response schema results to enable retrieval of response codes for the application. This is essential to enable error responses on the phone and inform the client/user of failures if they occur. I have not found any documentation relating to the same. Are there any facilities on your site to enable error or success status retrieval?

Welcome @Leo

You get to work out what the response is from the data you get back…

The docs are at https://api-portal.tfl.gov.uk/docs and in Swagger format at https://api.tfl.gov.uk/swagger/docs/v1

Thank you for your prompt reply, much appreciated.

I have tried entering this URL on TFL Unified API:

https://api.tfl.gov.uk/line/24/stoppoints**

I get the full data body, but still no response schema.

REQUEST URL

Example:
https://push-api-nile.tfl.gov.uk:8001/StopPoint/40004409036A/Arrivals?

RESPONSE BODY
no content
RESPONSE CODE

0

RESPONSE HEADERS

{
“error”: “no response from server”
}

When clicking on [https://api.tfl.gov.uk/swagger/docs/v1 ] I get the json version of the docs with the following response type description

“responses”: {
“200”: {
“description”: “OK”,
“schema”: {
“$ref”: “#/definitions/System.Object”
}
}
},

Is the response type in Swagger a general response format for other TFL API calls? which can be saved in a response status data model, and the response code and description are standard?

Yes, there are no response schemas. You get to work it out for yourself.

Oh charming.

Ok, thanks