Huawei discontinued official bootloader unlocking, but for legacy devices:
The error occurs when you attempt to flash firmware or system partitions using Fastboot while the device's bootloader is still in a "Locked" state. To resolve this, you must explicitly unlock the bootloader through a multi-step process involving device settings and terminal commands. 1. Enable OEM Unlocking
Lock and unlock the bootloader | Android Open Source Project