class ActionDispatch::Response

def message


response.message # => "Not Found"
response.status = 404

response.message # => "OK"
response.status = 200

Returns the corresponding message for the current HTTP status code:
def message
  Rack::Utils::HTTP_STATUS_CODES[@status]
end