Fixing handling of Symfony HTTP responses