Skip to main content

Main causes

  • The server cannot produce a response that matches the media types specified in the `Accept` header of the HTTP request.

  • The server cannot provide a response that conforms to the character sets defined in the `Accept-Charset` header of the request.

  • The server does not support any of the content encodings listed in the `Accept-Encoding` header of the request.

  • The server cannot generate a response that adheres to the language preferences specified in the `Accept-Language` header of the request.

Scrollable code block. Use arrow keys to scroll.
# Request example 
curl -X PUT https://sandbox.oxylabs.io/ -H 'Accept: application/xhtml+xml' -H 'Accept-Encoding: compress' -H 'User-Agent: Chrome/91.0.4472.124'

Try Scraper API with 5K results

Common fixes

  • Check the permissions set for your user account and ensure you have the necessary rights to access the resource.

  • Review the application's access control settings and modify them if your user role should have access.

  • Contact the system administrator to verify your user role is correctly configured and request access if needed.

  • Ensure the URL is correct and the resource is intended to be accessible for your user role.

Scrollable code block. Use arrow keys to scroll.
# Response example 
HTTP/1.1 406 Not Acceptable
Content-Type: text/html

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>406 Not Acceptable</title>
</head>
<body>
<h1>Not Acceptable</h1>
<p>The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.</p>
</body>
</html>

Forget HTTP errors with Scraper API

Web scraper API

Self-Service

Public data delivery from a majority of websites

From

49

Useful resources

SOCKS vs HTTP Proxy
SOCKS vs HTTP Proxy: What Is the Difference?
author avatar

Yelyzaveta Hayrapetyan

2025-05-30

How to Rotate Proxies in Python Using Requests and AIOHTTP
How to Rotate Proxies in Python: Building a Rotating Proxy Scraper with Requests and AIOHTTP
Dovydas Vėsa avatar

Dovydas Vėsa

2024-11-06

HTTP vs. HTTPS: What Is the Difference?
Maryia Stsiopkina avatar

Maryia Stsiopkina

2021-09-17

Get the latest news from data gathering world

Scale up your business with Oxylabs®