The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Protocol::HTTP::Error - HTTP parser error constants

SYNOPSIS

    use Protocol::HTTP;

    my ($request, $state, $position, $error) = $parser->parse($str);
    if ($error and $error == Protocol::HTTP::Error::body_too_large) { ... }

DESCRIPTION

Constants provided by this package are returned by parsers to signal about http protocol errors.

All errors are XS::STL::ErrorCode objects and are of category Protocol::HTTP::error_category.

    Protocol::HTTP::Error::body_too_large->category() == Protocol::HTTP::error_category; # true

CONSTANTS

lexical_error

http protocol generic error

multiple_content_length

multiple headers "Content-Length"

headers_too_large

http headers exceeded maximum configured value

body_too_large

message body (plain or in chunks) exceeded maximum configured value

unexpected_body

Body arrived for a message that is not supposed to have a body

unexpected_eof

EOF arrived for a message that should not end right now

unexpected_continue

"100 continue" code arrived from server while it was not supposed to send that

unsupported_transfer_encoding

unsupported_compression

uncompression_failure

SEE ALSO

Protocol::HTTP