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
It looks like we rename these underlying http status codes when in gets packaged as a class. See here
This is very confusing.
HTTP 401 is canonically Unauthorized.
HTTP 403 is canonically Forbidden.
There is no "unauthenticated" status code.
This rename means users reaching for an Unauthorized http status (401) will inadvertently return a 403. Users looking for a Forbidden http status will be confused and have to dig.
We should be able to simply add a ForbiddenException to handle the 403 case. Then we can deprecate the older UnauthorizedException.
We can also introduce UnauthorizedExceptionV2 and deprecate the UnauthenticatedException.
The text was updated successfully, but these errors were encountered:
The WebActionException includes the grpcStatus as well. These fields are used by the WebActionExceptionMapper to know how to translate to the relevant response depending on the protocol.
It looks like we rename these underlying http status codes when in gets packaged as a class. See here
This is very confusing.
HTTP 401 is canonically
Unauthorized
.HTTP 403 is canonically
Forbidden
.There is no "unauthenticated" status code.
This rename means users reaching for an
Unauthorized
http status (401) will inadvertently return a 403. Users looking for aForbidden
http status will be confused and have to dig.We should be able to simply add a
ForbiddenException
to handle the 403 case. Then we can deprecate the olderUnauthorizedException
.We can also introduce
UnauthorizedExceptionV2
and deprecate theUnauthenticatedException
.The text was updated successfully, but these errors were encountered: