[][src]Enum fimapi::response::error::Forbidden

pub enum Forbidden {
    InvalidPermission,
    MissingScope,
    InvalidToken,
    // some variants omitted
}

403 errors.

Variants

InvalidPermission

Returned whenever you try to do something the authenticated user is not allowed to do. For example, trying to edit a story the user does not own will return this error.

MissingScope

The scope for this request was not set for the token being used. Returned, for example, if you tried to edit a story without write_stories.

InvalidToken

The token used for the request was not valid. Either check you have the data correct or request a new token via the auth flow.

Trait Implementations

impl Debug for Forbidden[src]

impl Display for Forbidden[src]

impl Error for Forbidden[src]

impl From<Forbidden> for ErrorKind[src]

impl TryFrom<u64> for Forbidden[src]

type Error = InvalidErrorCode<'static>

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.