http 401 Unauthorized

Discussion in 'Windows Error Code, Crashes, BSOD, and Hangs' started by securityhope, Feb 9, 2017.

Tags:
  1. securityhope

    securityhope Administrator Staff Member

    Joined:
    Aug 3, 2016
    Messages:
    1,241
    Likes Received:
    0
    Trophy Points:
    36
    4×× Client Error

    401 Unauthorized

    The request has not been applied because it lacks valid authentication credentials for the target resource.

    The server generating a 401 response MUST send a WWW-Authenticate header field containing at least one challenge applicable to the target resource.

    If the request included authentication credentials, then the 401 response indicates that authorization has been refused for those credentials. The user agent MAY repeat the request with a new or replaced Authorization header field2. If the 401 response contains the same challenge as the prior response, and the user agent has already attempted authentication at least once, then the user agent SHOULD present the enclosed representation to the user, since it usually contains relevant diagnostic information.
    401 Code References

    Rails HTTP Status Symbol :unauthorized
    Go HTTP Status Constant http.StatusUnauthorized
    Symfony HTTP Status Constant Response::HTTP_UNAUTHORIZED
    Python2 HTTP Status Constant httplib.UNAUTHORIZED
    Python3 HTTP Status Constant http.client.UNAUTHORIZED
    Python3.5 HTTP Status Constant http.HTTPStatus.UNAUTHORIZED
     
    Last edited: Feb 9, 2017

Share This Page

Share