# Invalid Request 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` ## Error Codes | 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 | ## Example Response ```json { "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" } ``` ## How to Resolve - **`invalid_content_type`** -- Set the `Content-Type` header to `application/json` for JSON requests or `multipart/form-data` for 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. ## See Also - [Error Handling guide](/apis/concepts/errors) -- Full error handling patterns and code examples