1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

New example: Return JSON decode errors to a client (#268)

* Add JSON decode error example

* cargo fmt

* Use more appropriate response codes

* curl -i similar for all examples

* Add one more example of 422 response

* use to_string instead of empty format!
This commit is contained in:
Stig Johan Berggren
2020-03-15 19:21:13 +01:00
committed by GitHub
parent 456f3efc55
commit 8f3ce39d05
4 changed files with 132 additions and 0 deletions

View File

@ -16,6 +16,7 @@ members = [
"hello-world",
"http-proxy",
"json",
"json_decode_error",
"json_error",
"jsonrpc",
"juniper",