update error/failure mapping