A JSON-RPC request can return a 200 HTTP response but still have failed and be returning its error as part of the JSON response. In this case `resp.result` will be `null` and `resp.error` will contain the error code.