diff --git a/src/handler/users.rs b/src/handler/users.rs index e4fd7f0..212ceb2 100644 --- a/src/handler/users.rs +++ b/src/handler/users.rs @@ -47,7 +47,7 @@ pub async fn put_me_email( let email = body .email .parse::
() - .map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?; + .map_err(|_| StatusCode::BAD_REQUEST)?; let jwt = state .encode_email_update_jwt(user_id, &body.email)