Make KeenClient pass errorCode to the callback