We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Since the call is a post and auth credentials are being created a 201 is more appropriate.
Many people abuse 200 so you probably need to look for both.
Ideally:
xhr.status == 200 || xhr.status == 201