HTTP 415 Unsupported Media Type
Client Error4xx Response — Unsupported Media Type
What Does HTTP 415 Mean?
HTTP 415 Unsupported Media Type indicates that the server refuses the request because the payload format is not supported. The server cannot process the Content-Type or Content-Encoding of the request.
HTTP 415 commonly occurs when: sending JSON to an endpoint that only accepts form data, uploading a file type that isn't allowed, sending XML to a JSON-only API, or using an unsupported character encoding.
To fix this, set the correct Content-Type header in your request. For example, use 'application/json' for JSON data, 'multipart/form-data' for file uploads, and 'application/x-www-form-urlencoded' for HTML forms.
Common Causes of 415 Unsupported Media Type
The request Content-Type is not supported by the server. Common causes: sending JSON to a form-only endpoint, uploading prohibited file types, incorrect Content-Type header, and mismatched request body encoding.
Ensure the Content-Type header matches the actual format of the request body.
How to Fix 415 Unsupported Media Type
Set the correct Content-Type header in your request. For JSON: Content-Type: application/json. For form data: Content-Type: application/x-www-form-urlencoded or multipart/form-data. Ensure the request body matches the declared Content-Type.
Check the API documentation for accepted content types and ensure your request matches.
Related Status Codes
Frequently Asked Questions
What does HTTP 415 mean?
HTTP 415 Unsupported Media Type is a client error response. HTTP 415 Unsupported Media Type indicates that the server refuses the request because the payload format is not supported. The server cannot process the Content-Type or Content-Encoding of the request
Is HTTP 415 an error?
Yes, HTTP 415 is a client error. Client Error responses (cli) indicate the request contains an error.
How do I fix HTTP 415?
Set the correct Content-Type header in your request. For JSON: Content-Type: application/json. For form data: Content-Type: application/x-www-form-urlencoded or multipart/form-data. Ensure the request body matches the declared Content-Type.
What causes HTTP 415 Unsupported Media Type?
The request Content-Type is not supported by the server. Common causes: sending JSON to a form-only endpoint, uploading prohibited file types, incorrect Content-Type header, and mismatched request body encoding.
Is HTTP 415 permanent or temporary?
HTTP 415 is situational — it depends on the underlying cause. Fix the root cause to resolve it.
🔍 Check Your IP Address
While you're here, find out your public IP address, location, and ISP details instantly.
Check My IP →