changed a reraise which resulted in a 500 error into a 404