pub async fn check_http_response(
resp: Response,
max_body_len: usize,
) -> Result<Response, FaucetError>Expand description
Check an HTTP response status and return a FaucetError::HttpStatus on
non-success responses.
Reads the response body for error context, truncating to max_body_len
bytes (default: 2048) to avoid large error messages.