HTTP status for "already logged in"

Say that the REST client is logged in and is trying to log in again, in which case the server ignores the request. What status should be returned here?

+6
source share
1 answer

I think your API can get away with returning the same status / message code as if it were a successful first login.

That's why ... As I see it, you have two different scenarios in terms of the API: a new login and re-login. programmatically there is a difference.

But, from the consumer’s point of view, all the consumer wants to know is that the login was as successful as it was.

+9
source

Source: https://habr.com/ru/post/951848/


All Articles