diff --git a/crates/manager-core/src/http_service.rs b/crates/manager-core/src/http_service.rs index b8fa1c8..818c5f3 100644 --- a/crates/manager-core/src/http_service.rs +++ b/crates/manager-core/src/http_service.rs @@ -205,8 +205,9 @@ impl HttpServiceImpl { /// Core request path: validate, build headers, follow redirects /// manually, read the response body with a cap. async fn run(&self, req: HttpRequest) -> Result { + // F-Q-008: bad method is user input, not a backend problem. let method = Method::from_bytes(req.method.as_bytes()) - .map_err(|_| HttpError::Backend(format!("invalid method: {}", req.method)))?; + .map_err(|_| HttpError::InvalidArgs(format!("invalid method: {}", req.method)))?; let mut current = url::Url::parse(&req.url) .map_err(|e| HttpError::InvalidUrl(format!("{}: {e}", req.url)))?; @@ -336,10 +337,11 @@ fn build_headers(req: &HttpRequest, _url: &url::Url) -> Result