HTTP 415 Unsupported Media Type — Wrong Content-Type
Warning4xx client error
Overview
HTTP 415 Unsupported Media Type means the server does not support the request Content-Type.
Key Details
- Status: 415 Unsupported Media Type
- Category: 4xx Client Error
- Server cannot process the content type
- Check Accept and Content-Type headers
Common Causes
- Sending form data to a JSON-only endpoint
- Missing Content-Type header
- Using XML when server expects JSON
- File type not accepted by upload endpoint
Steps
- 1Set Content-Type: application/json for JSON APIs
- 2Check API docs for accepted content types
- 3Ensure file uploads use multipart/form-data
- 4Match the Content-Type to what the server expects
Tags
http-status4xx-client-errorhttp-415httpstatus-code
More in 4xx Client Error
http-400-bad-requestHTTP 400 Bad Request — What It Means & How to Fix It
Errorhttp-401-unauthorizedHTTP 401 Unauthorized — What It Means & How to Fix It
Errorhttp-402-payment-requiredHTTP 402 Payment Required — What It Means & How to Fix It
Errorhttp-403-forbiddenHTTP 403 Forbidden — What It Means & How to Fix It
Errorhttp-404-not-foundHTTP 404 Not Found — What It Means & How to Fix It
Errorhttp-405-method-not-allowedHTTP 405 Method Not Allowed — What It Means & How to Fix It
ErrorFrequently Asked Questions
Set the correct Content-Type header matching what the API expects.