lib/sensu/api/http_handler.rb
# Respond to the HTTP request with a `405` (Method Not Allowed) response.
Respond to the HTTP request with a `405` (Method Not Allowed) response.
Respond to the HTTP request with a ` 405 ` ( Method Not Allowed ) response .
def method_not_allowed!(allowed_http_methods=[])
        @response.headers["Allow"] = allowed_http_methods.join(", ")
        @response_status = 405
        @response_status_string = "Method Not Allowed"
        respond
      end
def method_not_allowed! ( allowed_http_methods = [ ] ) @response . headers [ "Allow" ] = allowed_http_methods . join ( ", " ) @response_status = 405 @response_status_string = "Method Not Allowed" respond end
Respond to the HTTP request with a `405` (Method Not Allowed) response.
Respond to the HTTP request with a ` 405 ` ( Method Not Allowed ) response .
allowed_http_methods