src/Api.php
private function wpErrorFor(array $errors, array $response): WP_Error
    {
        $wpError = new WP_Error;
        foreach ($errors as $error) {
            $wpError->add($error['code'], $error['message'], $response);
        }

        return $wpError;
    }
private function wpErrorFor(array $errors, array $response): WP_Error
    {
        $wpError = new WP_Error;
        foreach ($errors as $error) {
            $wpError->add($error['code'], $error['message'], $response);
        }

        return $wpError;
    }
private function wpErrorFor ( array $ errors , array $ response ) : WP_Error { $ wpError = new WP_Error ; foreach ( $ errors as $ error ) { $ wpError -> add ( $ error [ 'code' ] , $ error [ 'message' ] , $ response ) ; } return $ wpError ; }
Decode Cloudflare error messages to WP Error.

@param array $errors   The error messages from Cloudflare.
@param array $response The full response from Cloudflare.

@return WP_Error
Decode Cloudflare error messages to WP Error .