Merge branch 'master' into fix-layer-data-middleware-access

This commit is contained in:
Rob Ede 2021-06-25 12:28:37 +01:00 committed by GitHub
commit c43183edbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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