lib/sensu/api/http_handler.rb
# Respond to the HTTP request with a `401` (Unauthroized)
# response. This method sets the "WWW-Autenticate" HTTP response
# header.
Respond to the HTTP request with a `401` (Unauthroized)
response. This method sets the "WWW-Autenticate" HTTP response
header.
Respond to the HTTP request with a ` 401 ` ( Unauthroized ) response . This method sets the " WWW - Autenticate " HTTP response header .
def unauthorized!
        @response.headers["WWW-Authenticate"] = 'Basic realm="Restricted Area"'
        @response_status = 401
        @response_status_string = "Unauthorized"
        respond
      end
def unauthorized! @response . headers [ "WWW-Authenticate" ] = 'Basic realm="Restricted Area"' @response_status = 401 @response_status_string = "Unauthorized" respond end
Respond to the HTTP request with a `401` (Unauthroized)
response.
Respond to the HTTP request with a ` 401 ` ( Unauthroized ) response .