Why Does My REST API Show a 406 Error Only in Postman?

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?

Hey @davissmith25 :waving_hand:

Welcome to the Postman Community! :postman:

Without more details of the request and how this is structured in Postman, it’s different to provide any insights here.

What’s the context of the API? Does it have any Public Documentation? What’s the expected response?

Are you using the Desktop Client or the Web platform to make the request?