Why Does My API Work in Browser but Return 406 in Postman?

Hi Everyone,

I’m running into a 406 Not Acceptable error while testing my REST API in Postman. Interestingly, the same API works just fine when accessed through a browser, but fails in Postman.

I’ve already played around with the Accept headers — tried application/json, text/html, and a few others — but no luck so far.

A developer friend shared a blog post that gives a good overview of what a 406 error typically means. It was helpful for general understanding, but it didn’t quite address my specific issue with Postman.

Has anyone experienced something similar? Could this be a Postman-specific behavior, or might it be something off in my server config? I’d love to hear your thoughts or suggestions — even just a sanity check to see if I’m overlooking something obvious.

Thanks in advance!

1 Like

Let me guess, because you are spamming derpy derp Ai LLM bot that fails at coding.
I wonder how is current ratio of spam sent to successful bait clicks.
You should contact that Nigerian prince he was willing for decades to share his wealth with anybody.

what api is it? try curl.