Skip to content
Settings

BAD_REQUEST — malformed or invalid request

cyoda-go version 0.8.4

BAD_REQUEST — the request body, query parameter, or header is malformed or structurally invalid.

HTTP: 400 Bad Request. Retryable: no.

Fired when the server cannot parse or structurally process the incoming request. Common triggers include invalid JSON, unsupported format specifiers, a parameter outside its allowed range, and mutually exclusive parameters set together.

A payload that parses and then fails against the registered model is not this code — that is VALIDATION_FAILED, or INCOMPATIBLE_TYPE for a leaf whose DataType does not fit.

Not retryable. The same request produces the same error.

  • errors
  • errors.VALIDATION_FAILED
  • cyoda help errors — Every error response from the Cyoda REST API carries a structured errorCode in the properties object. Multiple codes may share the same HTTP status. Programmatic handling keys on errorCode, not HTTP status.
  • cyoda help errors VALIDATION_FAILED — Unlike BAD_REQUEST (which covers parse failures, bad parameters, and unstorable bytes), this error is returned when the payload parsed and then failed against the registered model. On an entity write that means: