class ActionDispatch::PublicExceptions
def render_format(status, content_type, body)
def render_format(status, content_type, body) [status, { "Content-Type" => "#{content_type}; charset=#{ActionDispatch::Response.default_charset}", "Content-Length" => body.bytesize.to_s }, [body]] end