The request is malformed and cannot be processed by the server. This typically means the request body, headers, or content type are incorrect.
HTTP Status: 400 Bad Request
| Code | Description |
|---|---|
invalid_content_type | The Content-Type header is missing or not supported |
malformed_body | The request body is not valid JSON |
missing_file | A required file upload is missing |
{
"type": "https://api.dinie.com.br/errors/malformed_body",
"title": "Bad Request",
"status": 400,
"detail": "The request body could not be parsed as JSON.",
"code": "malformed_body"
}invalid_content_type-- Set theContent-Typeheader toapplication/jsonfor JSON requests ormultipart/form-datafor file uploads.malformed_body-- Validate that your request body is well-formed JSON before sending. Check for trailing commas, unquoted keys, or encoding issues.missing_file-- Ensure the required file field is included in your multipart upload.
- Error Handling guide -- Full error handling patterns and code examples