Enum boguin::Error
[−]
[src]
pub enum Error { WrongScheme, NoDomain, TooManyRedirects, BadResponse, // some variants omitted }
HTTP specific errors.
These are used together with an ErrorKind
in an io::Error
.
The ErrorKind
is usually either InvalidInput
when the
user of the crate provided invalid info for a request or
InvalidData
when the server returned wrong or broken info.
Many other Errors are just wrapped inside an io::Error
.
They originate from a dependency and are not part of
the public API.
(They are here for information and logging
and should not be dependent on in code.)
Variants
WrongScheme
An invalid scheme was encountered in a request URL.
Currently allowed are only HTTP and HTTPS.
NoDomain
URL contains no domain.
TLS requires a domain name to verify the certificate. If the URL contains an IP address it has no domain.
TooManyRedirects
The client tried to follow too many redirects and gave up.
Current limit is 20 redirects maximum.
BadResponse
There was some logic error in the response received.
Such problems may not always raise this error but instead provide more specific information from the original error.
Trait Implementations
impl Debug for Error
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Error for Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more