Skip to content

Error Codes and Meanings ​

View as Markdown

Standard HTTP Response Codes ​

CabFare Connect uses standard HTTP status codes to indicate the outcome of every request. The table below defines each code, its meaning in the context of CabFare Connect, and the most common causes.

CodeMeaningCommon Causes
200 OKRequest successful, response body contains dataPing responses, Subsidy Card validation, trip end with subsidy processing
202 AcceptedRequest accepted with a notable conditionTrip start where driver Subsidy Scheme status is not valid; logout processed with issues
204 No ContentRequest accepted successfully, no response bodyDriver logout success, link request accepted, trip end without subsidy processing
400 Bad RequestMalformed or invalid request payloadMissing required fields, invalid enum values, incorrect data types
401 UnauthorizedMissing or invalid credentialsMissing or incorrect X-API-KEY or X-API-SECRET; using sandbox credentials against production or vice versa
403 ForbiddenAuthenticated but operation not permittedDriver or vehicle not authorised for Subsidy Scheme trips; Subsidy Scheme function attempted when driver status disallows it
404 Not FoundReferenced resource not foundUnknown device ID in current context; driver not currently logged in when calling session-dependent endpoints
409 ConflictActive session already existsDuplicate tripId submitted to /meter/trip/start; existing active trip for vehicle
410 GoneResource no longer availablePayment cancellation attempted on a transaction that has already been completed
500 Server ErrorInternal CabFare Connect errorContact support@cabfare.com

Error Response Format ​

For 4xx responses CabFare Connect returns a structured error body. Inspect the detail array for specific field-level errors.

json
{
  "status": 400,
  "error": "Bad Request",
  "detail": [
    {
      "field": "driverId",
      "message": "must not be blank"
    }
  ]
}

Subsidy Scheme Specific Status Codes ​

In addition to standard HTTP codes, CabFare Connect returns Subsidy Scheme specific status values within response bodies.

Status ValueContextMeaning
MPTP_DRIVER_INVALIDDriver login responseDriver is not registered or not currently permitted to provide Subsidy Scheme trips
isEligible: trueSubsidy Card validation responseMember card is valid and has a positive balance
isEligible: falseSubsidy Card validation responseMember card is invalid, expired, or has no remaining balance
isSubsidyCalculationMatching: falseTrip end responseCabFare Connect subsidy calculation does not match the Taxi Meter's submitted calculation — use CabFare Connect returned values as source of truth
LINK_SUCCESSLink responseDevice link established successfully
LINK_FAILURELink responseDevice link failed — devices continue in unlinked mode