Skip to main content

HTTP_VARIANTS

Constant HTTP_VARIANTS 

Source
pub const HTTP_VARIANTS: &[HttpVariant];
Expand description

All HttpResult[T] variants, in declaration order (ascending status). The vocabulary tracks the common, modern HTTP status codes (RFC 9110): success and created/accepted (Value), redirects carrying a Location URL, and the client/server failures that handlers routinely return (Message when an explanation helps the caller, None for self-describing statuses).