You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heh, this issue really got lost. I will add 201 to supported codes in the next major release. IMHO, codes 202-206 don't look like appropriate responses to auth requests.
I had deeper look at RFC 2616 and 201 is not a correct response either:
The request has been fulfilled and resulted in a new resource being created. The newly created resource can be referenced by the URI(s) returned in the entity of the response, with the most specific URI for the resource given by a Location header field.
We're not really creating a resource in the auth call, so it can't be referenced later.
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:
The text was updated successfully, but these errors were encountered: