Hey developers,
I’m encountering a 406 Not Acceptable error when testing my REST API using Postman. The API works fine when accessed via a browser but fails in Postman. I’ve checked the Accept headers and tried different content types like application/json
and,text/html
but the issue persists.
A developer friend suggested this blog on the 406 status code, which explains the error well. However, my issue is specific to Postman, and I couldn’t find a direct solution there. What’s your review on it? Does it cover the right aspects, or am I missing something important?
Could this be related to how Postman handles requests, or is it something in my server settings?