http::error
The one error type of the package.
Structs
HttpErrorSource
pub struct HttpErrorAn HTTP failure: its kind, a message and, for HTTP/2 errors, the
RFC 9113 error code (0 otherwise).
Trait implementations 2
impl Display for HttpErrorimpl Error for HttpError
Enums
ErrorKindSource
pub enum ErrorKindWhat went wrong.
Malformed input: a URI, a header, a message head.
The peer broke the protocol (HTTP/2 error code in
code).A size limit was exceeded.
A deadline passed.
The connection or stream closed before the message was complete.
The peer reset the stream (HTTP/2 error code in
code).Too many redirects, or a redirect that cannot be followed.
Something this library does not do (an unknown URL scheme).
The TLS handshake failed (an untrusted certificate, no common parameters).
A socket error.