Proxy locations

Europe

North America

South America

Asia

Africa

Oceania

See all locations

Network statusCareers

HTTP 415 Unsupported Media Type Error - Meaning & Fix

The HTTP 415 Unsupported Media Type error occurs when the server cannot process the request due to an unsupported format in the payload. This issue may relate to the Content-Type or Content-Encoding specified in the request. The server detects this incompatibility by analyzing the submitted data.

Main causes

  • The `Content-Type` header in the request is a format not supported by the server.

  • The `Content-Encoding` header specifies an encoding that the server is unable to process.

  • The server is unable to handle or recognize the data structure of the payload after inspecting it.

  • The request is targeting an endpoint that specifically requires a different content format than what is provided.

# Request example 
curl -X GET https://sandbox.oxylabs.io/ -H 'Accept: application/xhtml+xml' -H 'Accept-Encoding: br' -H 'User-Agent: Safari/537.36'

Try Scraper API with 5K results

Common fixes

  • Ensure the Content-Type header in your HTTP request matches the format the server is capable of processing.

  • Verify that the payload format is supported by the server by checking the server's documentation or configuration.

  • Convert your data into a compatible format before sending it to the server.

  • Add or update the Accept header in your request to match the media types supported by the server.

# Response example 
HTTP/1.1 415 Unsupported Media Type
Content-Type: text/plain; charset=utf-8
Content-Length: 35

Unsupported media type requested.

Forget HTTP errors with Scraper API

Web scraper API

Self-Service

Public data delivery from a majority of websites

From

49

Useful resources

Get the latest news from data gathering world

I'm interested