Added custom error codes for user operations