Sunday, 3 May 2020

What is the best status code for when a username is already registered?

I thought it would be best to use 409 but upon further research, it seems like most big tech companies just return a 200 which either redirects to some other page or contains their own status code within the return payload. Also I saw a good point somewhere that returning a 409 is generally not a good idea unless the API is private, as it is a security concern.

Submitted May 03, 2020 at 10:40PM by hahadatboi

No comments:

Post a Comment