Check for both "result.error" and "result.errno" in request.js.

The backend does not always send an error, but it should send errno.

fixes #74