Reference · Error codes
Error: bad_request
The request is malformed (unparseable JSON, wrong content type, an invalid header).
HTTP 400 · problem type: https://docs.gebsecure.com/errors/bad_request · title: bad_request
Common causes#
- A body that is not JSON, or a JSON value of the wrong shape at the top level.
- An
Authorizationheader that is notBearer <token>is reported asunauthenticated, notbad_request.
What to do#
- Send
content-type: application/jsonwith a JSON object body. - Compare the body with the operation in the API reference.
In the SDKs#
| SDK | Error type |
|---|---|
| TypeScript | ValidationError |
| Python | ValidationError |
| Go | ErrValidation |
| Java | ValidationException |
| .NET | ValidationException |
Every error response is RFC 9457 application/problem+json; see the error model.