packages

http::error

On this page

The one error type of the package.

Structs

HttpErrorSource

pub struct HttpError

An HTTP failure: its kind, a message and, for HTTP/2 errors, the RFC 9113 error code (0 otherwise).

Trait implementations 2
  • impl Display for HttpError
  • impl Error for HttpError

Enums

ErrorKindSource

pub enum ErrorKind

What went wrong.

  • Malformed input: a URI, a header, a message head.

  • Protocol§

    Source

    The peer broke the protocol (HTTP/2 error code in code).

  • TooLarge§

    Source

    A size limit was exceeded.

  • Timeout§

    Source

    A deadline passed.

  • Closed§

    Source

    The connection or stream closed before the message was complete.

  • The peer reset the stream (HTTP/2 error code in code).

  • Redirect§

    Source

    Too many redirects, or a redirect that cannot be followed.

  • Unsupported§

    Source

    Something this library does not do (an unknown URL scheme).

  • The TLS handshake failed (an untrusted certificate, no common parameters).

  • A socket error.