Mobile app version of vmapp.org
Login or Join
Kevin317

: What is the most relevant HTTP status when waiting for user activation? I'm coding a user registration process and wondering if 200 (OK) is the most relevant HTTP status for response after username/password

@Kevin317

Posted in: #Http

I'm coding a user registration process and wondering if 200 (OK) is the most relevant HTTP status for response after username/password creation, when waiting for user activation.

HTTP status 202 (accepted) seems relevant too.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kevin317

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ogunnowo487

It depends what you do after registration and what kind of website:


If an api 200 is fine (201 or 202 would be ok but unusual)
If a website 200 is fine if showing information
If a website, 302 is also fine if you're redirecting to a more useful page after creation (with an informational message).


Very few websites use codes other than 100,200,301,302,400,401,403,404,500, it's best not to get too hung up on which one you're using, as in practice most clients will treat them as broad classes (10x,20x,30x,40x,50x), and it won't matter which you choose.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme