HTTP ERROR 500

That means your code is not working correctly.