We should use Node-style error codes to be [consistent with `sharedb`](https://github.com/share/sharedb/pull/309).