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.
↧