change 500 to 404