class ActionDispatch::PublicExceptions

def render_format(status, content_type, body)

def render_format(status, content_type, body)
  [status, { Rack::CONTENT_TYPE => "#{content_type}; charset=#{ActionDispatch::Response.default_charset}",
            Rack::CONTENT_LENGTH => body.bytesize.to_s }, [body]]
end