#84 FTX-84: 500 instead of 422 envelope on unparseable request body

closed high bug Created 2026-07-26 04:13 · Updated 2026-07-26 04:19

Description

Edit
EARS SPEC: - If a request body cannot be parsed or validated (including non-JSON or non-UTF-8 bytes input), then the API shall return the 422 validation_error envelope (UB-API-6), never a 500. - The deploy smoke script shall send Content-Type: application/json on its JSON requests. Found during FTX-81 prod smoke: RequestValidationError.errors() embeds the raw bytes input; error_response -> JSONResponse raises TypeError -> generic 500. Repro: curl -X POST /v1/tenants with a JSON string body but no Content-Type header (form-encoded default).

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...