mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-29 11:18:30 +00:00
add Error variant for FeatureDisabled
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
3a2c5be4f4
commit
d91570d0e6
2 changed files with 6 additions and 2 deletions
|
@ -66,7 +66,7 @@ pub(super) fn bad_request_code(kind: &ErrorKind) -> StatusCode {
|
|||
| Unrecognized => StatusCode::METHOD_NOT_ALLOWED,
|
||||
|
||||
// 404
|
||||
| NotFound => StatusCode::NOT_FOUND,
|
||||
| NotFound | NotImplemented | FeatureDisabled => StatusCode::NOT_FOUND,
|
||||
|
||||
// 403
|
||||
| GuestAccessForbidden
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue