Class Http::ParserError
In: lib/http/parser.rb
Parent: RuntimeError

An exception class for HTTP parser errors. Includes an HTTP Error Code number that corresponds to the difficulty parsing (ie. 414 for Request-URI Too Long)

Methods

new  

Classes and Modules

Class Http::ParserError::BadRequest
Class Http::ParserError::LengthRequired
Class Http::ParserError::NotImplemented
Class Http::ParserError::RequestEntityTooLarge
Class Http::ParserError::RequestTimeout
Class Http::ParserError::RequestURITooLong

Attributes

code  [R]  The error code that corresponds to the parsing error.
headers  [R]  Headers that should be sent back with the error reply as a hash.

Public Class methods

[Validate]