Correct externalErrorCode to string in examples