Sonny Labs Docs
Error codes

validation.body_unparseable

Request body could not be parsed as JSON at all.

validation.body_unparseable is returned at HTTP 400.

When this fires

Spring's HttpMessageNotReadableException — the body either was not JSON, or was JSON whose shape did not bind to the expected request type (e.g. an array where an object was expected).

What to do

Confirm the Content-Type: application/json header is set and the body is well-formed JSON matching the schema in docs/design/api/v1/openapi.yaml. The SDKs handle this for you — if you are seeing it, you are likely calling the API directly with a hand-built body.

See also

  • SDK reference — the Python and TypeScript SDKs raise typed exceptions for codes in this namespace.
  • Error code index — every code the runtime can return.

On this page