Skip to content

Commit

Permalink
fix: bad request status code
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Dec 5, 2024
1 parent 5e5edfd commit e2856f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handlers/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ pub async fn api_handler(request: Request) -> Response {

let Some(path) = uri.path_and_query else {
return Response::builder()
.status(405)
.body("Method Not Allowed".into())
.status(400)
.body("Bad Request".into())
.unwrap();
};

Expand Down

0 comments on commit e2856f1

Please sign in to comment.