class Protocol::HTTP::Response
def self.for_exception(exception)
Create a response for the given exception.
def self.for_exception(exception) Response[500, Headers["content-type" => "text/plain"], ["#{exception.class}: #{exception.message}"]] end
def self.for_exception(exception) Response[500, Headers["content-type" => "text/plain"], ["#{exception.class}: #{exception.message}"]] end