forked from jmug/stoatchat
chore: migrate bots create route
This commit is contained in:
@@ -43,6 +43,7 @@ pub enum ErrorType {
|
||||
// ? User related errors
|
||||
UsernameTaken,
|
||||
InvalidUsername,
|
||||
DiscriminatorChangeRatelimited,
|
||||
UnknownUser,
|
||||
AlreadyFriends,
|
||||
AlreadySentRequest,
|
||||
|
||||
@@ -19,6 +19,7 @@ impl<'r> Responder<'r, 'static> for Error {
|
||||
ErrorType::UnknownUser => Status::NotFound,
|
||||
ErrorType::InvalidUsername => Status::BadRequest,
|
||||
ErrorType::UsernameTaken => Status::Conflict,
|
||||
ErrorType::DiscriminatorChangeRatelimited => Status::TooManyRequests,
|
||||
ErrorType::AlreadyFriends => Status::Conflict,
|
||||
ErrorType::AlreadySentRequest => Status::Conflict,
|
||||
ErrorType::Blocked => Status::Conflict,
|
||||
|
||||
Reference in New Issue
Block a user