Enum github::error::ErrorStatus [-] [+] [src]

pub enum ErrorStatus {
    BadRequest,
    UnprocessableEntity,
    Forbidden,
    NotFound,
    Unknown(u32),
}

ErrorStatus represents the status code given in the header of a negative response. Look at const definitions such as STATUS_OK for more information for each value.

Variants

BadRequest
UnprocessableEntity
Forbidden
NotFound
Unknown

Methods

impl ErrorStatus

fn new(code: u32) -> ErrorStatus

Simple way to construct an ErrorStatus based on its constant value as defined by the official docs.

Trait Implementations

impl Display for ErrorStatus

Allowing ErrorStatus to be printed via {} in a controlled manner.

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Debug for ErrorStatus

fn fmt(&self, __arg_0: &mut Formatter) -> Result