Handle errors (with code) given by any step of the action