class ActionDispatch::PublicExceptions

def render(status, content_type, body)

def render(status, content_type, body)
  format = "to_#{content_type.to_sym}" if content_type
  if format && body.respond_to?(format)
    render_format(status, content_type, body.public_send(format))
  else
    render_html(status)
  end
end