Search code examples
resthttp-status-codes

What is the expected status code for a succesful login


What is the status code a backend should return when someone gets succesfully logged into an application? The response might be either an html or a json.

LE: I believe I have to choose between 200 OK and 204 No Content, not sure which one to use and why


Solution

  • 200 OK

    or if you need to redirect then one of the redirect status codes