Hi Federico, I hope you're doing well!
These functions are implemented in the pre-compiled section of the NXP BLE Stack. Error and status codes are implemented following the BLE Specification established by the Bluetooth SIG.
Still, could you please provide some more information about the intention with the modification you're planning? And also some more details about the disconnection reason you want to implement?
Best regards,
Sebastian