diff --git a/src/error.rs b/src/error.rs index 6436b3d..1e2f4b8 100644 --- a/src/error.rs +++ b/src/error.rs @@ -85,6 +85,7 @@ impl ResponseError for MyError { | MyError::Whitelist(_) | MyError::WrongActor(_) | MyError::BadActor(_, _) => StatusCode::FORBIDDEN, + MyError::NotSubscribed(_) => StatusCode::UNAUTHORIZED, MyError::Duplicate => StatusCode::ACCEPTED, MyError::Kind(_) => StatusCode::BAD_REQUEST, _ => StatusCode::INTERNAL_SERVER_ERROR,