|
|
|
|
|
by hn_throwaway_99
748 days ago
|
|
Why do you think 403 is the wrong error code? Based on the spec it seems entirely appropriate to me: > HTTP 403 provides a distinct error case from HTTP 401; while HTTP 401 is returned when the client has not authenticated, and implies that a successful response may be returned following valid authentication, HTTP 403 is returned when the client is not permitted access to the resource despite providing authentication such as insufficient permissions of the authenticated account.[a] > Error 403: "The server understood the request, but is refusing to authorize it." (RFC 7231) |
|