actix-web
actix-web copied to clipboard
web::Path returns 404 NotFound when deserialization fails
- Actix Web Version: v4.0-beta.14
Thanks for figuring that out!
https://discord.com/channels/771444961383153695/771447545154371646/920200678725529700
There's definitely a sense in which this is an appropriate response code.
Can you give a more specific suggestion for what to do?
Assuming deserialization fails returning a Bad Request (400 iirc) Status code, like FastAPI, might be appropiate.