CBQE-1350: add status to viewquery exception

Change-Id: I43a641aec4e75e355a59eeb290e0b9bcce6873a8
Reviewed-on: http://review.couchbase.org/37714
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Andrei Baranouski <andrei.baranouski@gmail.com>