process for 500 errors