Flowdock
method

http_error

Importance_0
Ruby latest stable (v1_9_3_392) - 0 notes - Class: ModRubyServer
http_error(status, message) private

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/xmlrpc/server.rb, line 543
  def http_error(status, message)
    err = "#{status} #{message}"
    msg =       <html>        <head>          <title>#{err}</title>        </head>        <body>          <h1>#{err}</h1>          <p>Unexpected error occured while processing XML-RPC request!</p>        </body>      </html>

    http_write(msg, status, "Status" => err, "Content-type" => "text/html")
    throw :exit_serve # exit from the #serve method
  end
Register or log in to add new notes.