Saving
This commit is contained in:
parent
0b8580dacd
commit
d7a37c1b48
11 changed files with 337 additions and 168 deletions
|
|
@ -19,6 +19,14 @@ impl ApiError {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn not_implemented(msg: &str) -> Self {
|
||||
Self {
|
||||
status: Some(StatusCode::INTERNAL_SERVER_ERROR),
|
||||
kind: ApiErrorKind::Other(anyhow::anyhow!("{}", msg)),
|
||||
plaintext: false,
|
||||
}
|
||||
}
|
||||
|
||||
pub const fn dht_disabled() -> Self {
|
||||
Self {
|
||||
status: Some(StatusCode::NOT_FOUND),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue