using constant for the 500 error rather than the numeric value

git-svn-id: file:///var/www/svn/anahita/anahita/trunk@17315 a933e228-e664-4d3f-8241-49479697c698