Quantcast
Channel: Active questions tagged rest - Stack Overflow
Viewing all articles
Browse latest Browse all 3655

What status code should I use when session token is invalid?

$
0
0

When creating a web service (RESTful), what status code should I use when session token is invalid?Currently the one in my company sends me a 404, not found, but I think this is not correct, because the resource exists. Maybe I should use 401 Unauthorized.What do you think? What status code do you recommend me to use in this scenario? Thanks.


Viewing all articles
Browse latest Browse all 3655

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>