Skip to Content

Errors

This document describes the error model and all error responses supported by the Transport API.

Error Envelope

All error responses conform to a common JSON schema:

Error Response Structure
{
"data": {
  "status": "FAILED",
  "errorLog": "Human-readable description of what went wrong"
}
}
  • status — The request status (FAILED for errors).
  • errorLog — A human-readable description of the problem.

HTTP Status Codes

StatusMeaningTypical Scenarios
400 Bad RequestValidation or formatting issueMissing or invalid fields, unrecognised destination code, invalid parameter format
401 UnauthorizedToken cannot be verifiedExpired or malformed Bearer token
403 ForbiddenToken not provided or invalidMissing Authorization header, invalid credentials
404 Not FoundResource not foundNo request found with the given requestId, client not found

Endpoint-specific Error Notes

POST /v1/sign-requests/train-announcements

  • 400 Bad Request
    • Missing or invalid fields in the request body.
    • Unrecognised destination CRS/TIPLOC code.
    • Invalid parameter combinations.
  • 401/403 Unauthorized/Forbidden
    • Bearer token is missing, expired, or invalid.
POST /v1/sign-requests/train-announcements — Example Error
{
"data": {
  "status": "FAILED",
  "errorLog": "Destination not recognized."
}
}

GET /v1/sign-requests/{requestId}

  • 400 Bad RequestrequestId is missing or not in the expected format.
  • 404 Not Found — No request found with the given requestId.
GET /v1/sign-requests/{requestId} — Example Error
{
"data": {
  "status": "FAILED",
  "errorLog": "Request not found."
}
}

Client Guidance

  • Do not retry 400 responses without correcting the request — they indicate client-side issues.
  • 401/403 responses typically mean you need to re-authenticate and obtain a fresh token.
  • Always read the errorLog field for additional context to fix the failing request quickly.
Last updated on
Question? Give us feedback
support@signapse.ai