Getting a 406 Not Acceptable Error – What’s Causing It and How Do I Fix It? or Why Am I Seeing a 406

34 Replies, 2827 Views

Hey! The 406 not acceptable error usually means the server’s unhappy with the Accept header.

Try forcing a wildcard Accept header in your request:
```
curl -H "Accept: */*" https://yoursite.com
```

If that works, your app’s probably sending too-specific headers. Also, check for typos in content-type directives in your backend code.

Messages In This Thread



Users browsing this thread: 1 Guest(s)