actix-web icon indicating copy to clipboard operation
actix-web copied to clipboard

web::Path returns 404 NotFound when deserialization fails

Open aliemjay opened this issue 3 years ago • 3 comments

  • Actix Web Version: v4.0-beta.14

aliemjay avatar Dec 14 '21 22:12 aliemjay

Thanks for figuring that out!

https://discord.com/channels/771444961383153695/771447545154371646/920200678725529700

Zageron avatar Dec 14 '21 22:12 Zageron

There's definitely a sense in which this is an appropriate response code.

Can you give a more specific suggestion for what to do?

robjtede avatar Jan 04 '22 19:01 robjtede

Assuming deserialization fails returning a Bad Request (400 iirc) Status code, like FastAPI, might be appropiate.

Chaostheorie avatar Mar 30 '22 14:03 Chaostheorie