[HttpFoundation] Fix unexpected status code on a FastCGI server