fn status_code(&self) -> StatusCode {
        match self {
            TelescopeError::BadRequest { .. } => StatusCode::BAD_REQUEST,
            TelescopeError::ResourceNotFound { .. } => StatusCode::NOT_FOUND,
            TelescopeError::PageNotFound => StatusCode::NOT_FOUND,
            TelescopeError::NotImplemented => StatusCode::NOT_IMPLEMENTED,
            TelescopeError::CsrfTokenNotFound => StatusCode::NOT_FOUND,
            TelescopeError::CsrfTokenMismatch => StatusCode::BAD_REQUEST,
            TelescopeError::InvalidForm(_) => StatusCode::BAD_REQUEST,
            TelescopeError::NotAuthenticated => StatusCode::UNAUTHORIZED,
            TelescopeError::Forbidden => StatusCode::FORBIDDEN,
            TelescopeError::RpiCasError(_) => StatusCode::BAD_GATEWAY,
            TelescopeError::GatewayError { .. } => StatusCode::BAD_GATEWAY,
            _ => StatusCode::INTERNAL_SERVER_ERROR,
        }
    }
// Override the default status code (500 - Internal Server Error) here.
Override the default status code (500 - Internal Server Error) here.
Override the default status code ( 500 - Internal Server Error ) here .
fn status_code(&self) -> StatusCode {
        match self {
            TelescopeError::BadRequest { .. } => StatusCode::BAD_REQUEST,
            TelescopeError::ResourceNotFound { .. } => StatusCode::NOT_FOUND,
            TelescopeError::PageNotFound => StatusCode::NOT_FOUND,
            TelescopeError::NotImplemented => StatusCode::NOT_IMPLEMENTED,
            TelescopeError::CsrfTokenNotFound => StatusCode::NOT_FOUND,
            TelescopeError::CsrfTokenMismatch => StatusCode::BAD_REQUEST,
            TelescopeError::InvalidForm(_) => StatusCode::BAD_REQUEST,
            TelescopeError::NotAuthenticated => StatusCode::UNAUTHORIZED,
            TelescopeError::Forbidden => StatusCode::FORBIDDEN,
            TelescopeError::RpiCasError(_) => StatusCode::BAD_GATEWAY,
            TelescopeError::GatewayError { .. } => StatusCode::BAD_GATEWAY,
            _ => StatusCode::INTERNAL_SERVER_ERROR,
        }
    }
fn status_code ( & self ) -> StatusCode { match self { TelescopeError :: BadRequest { .. } => StatusCode :: BAD_REQUEST , TelescopeError :: ResourceNotFound { .. } => StatusCode :: NOT_FOUND , TelescopeError :: PageNotFound => StatusCode :: NOT_FOUND , TelescopeError :: NotImplemented => StatusCode :: NOT_IMPLEMENTED , TelescopeError :: CsrfTokenNotFound => StatusCode :: NOT_FOUND , TelescopeError :: CsrfTokenMismatch => StatusCode :: BAD_REQUEST , TelescopeError :: InvalidForm ( _ ) => StatusCode :: BAD_REQUEST , TelescopeError :: NotAuthenticated => StatusCode :: UNAUTHORIZED , TelescopeError :: Forbidden => StatusCode :: FORBIDDEN , TelescopeError :: RpiCasError ( _ ) => StatusCode :: BAD_GATEWAY , TelescopeError :: GatewayError { .. } => StatusCode :: BAD_GATEWAY , _ => StatusCode :: INTERNAL_SERVER_ERROR , } }
Override the default status code (500 - Internal Server Error) here.
Override the default status code ( 500 - Internal Server Error ) here .
&self
&self