Exceptions in User model now have error codes.