added detail to 500 error codes