Method: Grape::Middleware::Error#rack_response
- Defined in:
- lib/grape/middleware/error.rb
#rack_response(message, status = , headers = { Grape::Http::Headers::CONTENT_TYPE => content_type }) ⇒ Object
72 73 74 75 76 77 |
# File 'lib/grape/middleware/error.rb', line 72 def rack_response(, status = [:default_status], headers = { Grape::Http::Headers::CONTENT_TYPE => content_type }) if headers[Grape::Http::Headers::CONTENT_TYPE] == TEXT_HTML = ERB::Util.html_escape() end Rack::Response.new([], status, headers).finish end |