Invalid body
type | https://docs.frem.sh/reference/api/errors/invalid-body |
| HTTP status | 400 Bad Request |
What it means
The request was malformed, or a field failed validation.
Example detail messages returned with this error:
- Body must be an object.
- Body must be an object.
- Body must be an object.
What to do
The body parsed but did not match the endpoint’s schema. Compare it with the request schema in the OpenAPI spec.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/invalid-body",
"title": "Bad Request",
"status": 400,
"detail": "..."
}Branch on type, not on title or detail - those are human-readable and may be reworded.