Add general error code constants and harden existing codes