I’m developing a website using symfony2.
First I started everything was fine, redirects returns 301 response, on server error Symfony returns 300 response …, but now every time I using redirect Response symfony returns a response with 200 status and meta refresh to redirect. Aslo when an internal server error occurs it return a response with 200 status .
In another situation I tried to create RSS feed, although I sets Content-Type: application/xml in client-side content-type is text-html.
Is there something wrong with Symfony config?
You left a BOM mark or a whitespace character outside of php tags somewhere?
Before doing a
return new Response...try: