[Bugfix][Frontend] Fix http_requests_total metric recording some 4xx errors as 5xx (#44303)