Improved error handling

Updates from code review:
- Handle ErrorResponse, unexpected opcode
- Note on queries about dependent indexing
- Minor formatting