← All Status Codes
415
Unsupported Media Type
⚠️ Client Error
Low Risk
📖 What Is HTTP 415?
The server does not support the media type of the request body. The Content-Type header does not match what the server expects.
🛡️ Security Implications
Enforce Content-Type validation to prevent content-type confusion attacks. Reject requests with mismatched content types.
🔍 Common Causes
Sending JSON with Content-Type: text/plain, uploading an unsupported file format, or missing Content-Type header.
🔧 How to Fix
Set the correct Content-Type header (application/json for JSON, multipart/form-data for file uploads). Check API documentation.
🖥️ How to Check
curl -I -o /dev/null -w "%{http_code}" https://example.com