I am wondering how would I simulate a 500 error in Symfony 2.
I have been reading this post where Raise suggests throwing an exception
The simplest way to do this is to:
return new Response('', 500);
Don't forget to include Symfony\Component\HttpFoundation\Response.
Symfony\Component\HttpFoundation\Response