1
0
mirror of https://github.com/fafhrd91/actix-web synced 2024-11-24 00:21:08 +01:00

re-add serde error impls

This commit is contained in:
Rob Ede 2021-06-25 12:28:04 +01:00
parent 9a26393375
commit 5a480d1d78
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933

View File

@ -57,6 +57,10 @@ impl ResponseError for serde::de::value::Error {
}
}
impl ResponseError for serde_json::Error {}
impl ResponseError for serde_urlencoded::ser::Error {}
impl ResponseError for std::str::Utf8Error {
fn status_code(&self) -> StatusCode {
StatusCode::BAD_REQUEST