Skip to content
Alpha — Headcode is currently in alpha. APIs and data may change without notice.

Bad Request

The request could not be processed because one or more request values are invalid, incomplete, or mutually incompatible.

PropertyValue
Typehttps://docs.headcode.dev/errors/general/bad-request
CodeHEADCODE.GENERAL.BAD_REQUEST
HTTP status400
TitleBad Request
{
"type": "https://docs.headcode.dev/errors/general/bad-request",
"title": "Bad Request",
"status": 400,
"detail": "Both 'lat' and 'lng' must be provided together.",
"code": "HEADCODE.GENERAL.BAD_REQUEST",
"errors": [
{
"detail": "Both 'lat' and 'lng' must be provided together.",
"parameter": "lat"
},
{
"detail": "Both 'lat' and 'lng' must be provided together.",
"parameter": "lng"
}
]
}

Check the endpoint documentation for required parameters, supported combinations, valid ranges, and allowed enum values. For station search, provide either query or a complete lat/lng pair, not both.