Add missing user deprecated error code.
Use int code instead of constant E_USER_DEPRECATED.
Merge pull request #6105 from tristanlins/hotfix/missing-user-deprecated-error