pub enum HttpErrorKind {
Show 13 variants
InvalidRequest,
HostNotAllowed,
ForbiddenDestination,
CredentialHeader,
CredentialUnavailable,
TooManyRedirects,
Timeout,
TooLarge,
NotText,
WriteBudget,
BadPath,
Connection,
Abi,
}Variants§
InvalidRequest
The request does not parse, or names a method, URL, or header no request can carry.
HostNotAllowed
The function’s network policy does not admit the host.
ForbiddenDestination
The worker refuses the destination: plain http, or an address in a private or reserved range.
CredentialHeader
A header the request sets is one a credential sets for that origin.
The session’s vaults hold no single usable credential for an origin the function’s grant lists.
TooManyRedirects
Timeout
TooLarge
The response body is over INLINE_MAX_BYTES.
NotText
The response body is not UTF-8, so it cannot be returned inline.
WriteBudget
Saving the response would pass the invocation’s write budget.
BadPath
A body or output path is not a usable volume file.
Connection
The connection failed or the server broke the exchange.
Abi
The import itself misbehaved, or the program runs outside the worker.
Trait Implementations§
Source§impl Clone for HttpErrorKind
impl Clone for HttpErrorKind
impl Copy for HttpErrorKind
Source§impl Debug for HttpErrorKind
impl Debug for HttpErrorKind
Source§impl<'de> Deserialize<'de> for HttpErrorKind
impl<'de> Deserialize<'de> for HttpErrorKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for HttpErrorKind
Source§impl PartialEq for HttpErrorKind
impl PartialEq for HttpErrorKind
Source§impl Serialize for HttpErrorKind
impl Serialize for HttpErrorKind
impl StructuralPartialEq for HttpErrorKind
Auto Trait Implementations§
impl Freeze for HttpErrorKind
impl RefUnwindSafe for HttpErrorKind
impl Send for HttpErrorKind
impl Sync for HttpErrorKind
impl Unpin for HttpErrorKind
impl UnsafeUnpin for HttpErrorKind
impl UnwindSafe for HttpErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more