Method: Protocol::HTTP::Response.for_exception

Defined in:
lib/protocol/http/response.rb

.for_exception(exception) ⇒ Object



92
93
94
# File 'lib/protocol/http/response.rb', line 92

def self.for_exception(exception)
  Response[500, Headers['content-type' => 'text/plain'], ["#{exception.class}: #{exception.message}"]]
end