-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove kitsune-core unused dependencies
- Loading branch information
Showing
5 changed files
with
1 addition
and
70 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,3 @@ | ||
use std::error::Error as StdError; | ||
use thiserror::Error; | ||
|
||
pub type BoxError = Box<dyn StdError + Send + Sync>; | ||
//pub type Result<T, E = Error> = std::result::Result<T, E>; | ||
|
||
#[derive(Debug, Error)] | ||
pub enum ApiError { | ||
#[error("Bad request")] | ||
BadRequest, | ||
|
||
#[error("Email already taken")] | ||
EmailTaken, | ||
|
||
#[error("Internal server error")] | ||
InternalServerError, | ||
|
||
#[error("Invalid captcha")] | ||
InvalidCaptcha, | ||
|
||
#[error("Missing host")] | ||
MissingHost, | ||
|
||
#[error("Not found")] | ||
NotFound, | ||
|
||
#[error("Registrations closed")] | ||
RegistrationsClosed, | ||
|
||
#[error("Unauthorised")] | ||
Unauthorised, | ||
|
||
#[error("Unsupported media type")] | ||
UnsupportedMediaType, | ||
|
||
#[error("Username already taken")] | ||
UsernameTaken, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters