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
You can do:
throw new Symfony\Component\HttpKernel\Exception\HttpException(500, "Some description");