Skip to content

Commit

Permalink
fix the one status code that got away πŸ˜”
Browse files Browse the repository at this point in the history
  • Loading branch information
ChillFish8 committed Oct 12, 2021
1 parent cce36b8 commit 595666f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnx-server/src/routes/default_handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ pub async fn handle_casting(err: routerify::RouteError) -> Result<Response<Body>
.map_err(anyhow::Error::from)?
},
LnxError::SerializationError(e) => {
json_response(400, &e.to_string()).map_err(anyhow::Error::from)?
json_response(422, &e.to_string()).map_err(anyhow::Error::from)?
},
};

Expand Down

0 comments on commit 595666f

Please sign in to comment.