Add 'error' handling for query streams. Emit error event (instead of calling callback) when using streaming on queries.
Add custom error for handling REST API error responses.