mirror of
https://github.com/Blah-IM/blahrs.git
synced 2025-09-13 05:55:22 +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
|
@ -15,6 +15,7 @@ html-escape = "0.2"
|
|||
http-body-util = "0.1"
|
||||
humantime = "2"
|
||||
parking_lot = "0.12" # Maybe no better performance, just that we hate poisoning. ¯\_(ツ)_/¯
|
||||
paste = "1.0.15"
|
||||
rand = "0.8"
|
||||
reqwest = "0.12"
|
||||
rusqlite = { version = "0.32", features = ["rusqlite-macros"] }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue