ISO 14001:2015 10.2: Nonconformity and corrective action
When a nonconformity arises, the organization responds by acting to control and correct it and by dealing with its consequences, which includes mitigating any adverse environmental impact where applicable. It then decides whether action is needed to remove the causes so that the nonconformity does not happen again or elsewhere, by reviewing it, finding out why it happened and checking whether similar nonconformities exist or could arise; it takes whatever action is required; it checks whether the corrective action worked; and it changes the system where necessary. Corrective action is proportionate to how significant the effects of the nonconformities are, environmental impacts included. Documented information is kept on what the nonconformities were, the actions that followed, and the outcome of corrective action.
This control maps to 35 controls across 22 other frameworks. If you already hold one of them, the evidence you collected for it is the starting point here rather than new work.