mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-07-11 08:35:34 +00:00
refactor(blahd,webapi)!: overhaul error type
Error types are now collected into a single place. Similar errors are merged. Request invariant violations are now all under 400 with type "invalid_request" if it's a client mistake; and if it's caused by a server restrction, under 403 with type "disabled".
This commit is contained in:
parent
5f03a4ca03
commit
0911d56e22
9 changed files with 267 additions and 312 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -322,6 +322,7 @@ dependencies = [
|
|||
"humantime",
|
||||
"nix",
|
||||
"parking_lot",
|
||||
"paste",
|
||||
"rand",
|
||||
"reqwest",
|
||||
"rstest",
|
||||
|
@ -1466,6 +1467,12 @@ dependencies = [
|
|||
"windows-targets",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "paste"
|
||||
version = "1.0.15"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
||||
|
||||
[[package]]
|
||||
name = "pem-rfc7468"
|
||||
version = "0.7.0"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue