added 500 status code to PEAR error handler