Class: Rack::ServiceApiVersioning::HttpErrorResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/service_api_versioning/http_error_response.rb

Overview

Builds Rack::Response with specified status code and body message.

Instance Method Summary collapse

Instance Method Details

#callObject



12
13
14
# File 'lib/rack/service_api_versioning/http_error_response.rb', line 12

def call
  Rack::Response.new(message, code).finish
end