Sonny Labs Docs
Error codes

validation.body_invalid

Request body parsed as JSON but failed bean-validation rules.

validation.body_invalid is returned at HTTP 400.

When this fires

The body parsed as JSON of the expected type, but one or more field-level constraints (required, length, format) failed.

What to do

Walk the errors[] array — each entry has a path (JSON pointer-style field name) and a per-field code. Fix the offending fields and retry.

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