diff --git a/services/api/src/middleware/ignore_invalid_routes.rs b/services/api/src/middleware/ignore_invalid_routes.rs index ec864a52..2b6699e2 100644 --- a/services/api/src/middleware/ignore_invalid_routes.rs +++ b/services/api/src/middleware/ignore_invalid_routes.rs @@ -54,7 +54,7 @@ pub async fn ignore_invalid_routes(request: Request, next: Next) -> Res // but "unknown" isn't really a valid user-agent else if user_agent == "unknown" { // please set a valid user-agent - return StatusCode::FORBIDDEN.into_response(); + return StatusCode::BAD_REQUEST.into_response(); } else { next.run(request).await }