GebSecure Docs v0.1.0

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 Authorization header that is not Bearer <token> is reported as unauthenticated, not bad_request.

What to do#

  • Send content-type: application/json with 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.