lockdown: Refactor internal error checking and add more native errors to enum
3 files changed