def http_status_exception(exception)
      @exception = exception
      render_options = {:template => exception.template, :status => exception.status}
      render_options[:layout] = exception.template_layout if exception.template_layout
      render(render_options)
    rescue ActionView::MissingTemplate
      head(exception.status)
    end
def http_status_exception(exception)
      @exception = exception
      render_options = {:template => exception.template, :status => exception.status}
      render_options[:layout] = exception.template_layout if exception.template_layout
      render(render_options)
    rescue ActionView::MissingTemplate
      head(exception.status)
    end
The default handler for raised HTTP status exceptions. It will render a
 template if available, or respond with an empty response with the HTTP
 status corresponding to the exception.

 You can override this method in your <tt>ApplicationController</tt> to
 handle the exceptions yourself.

 <tt>exception</tt>:: The HTTP status exception to handle.