Use constant E_USER_DEPRECATED instead of int code.
Use constant E_RECOVERABLE_ERROR instead of int code.
Use constant E_DEPRECATED instead of int code.
Merge pull request #6106 from tristanlins/hotfix/use-error-constant-instead-of-code