exit code chat