docs: function(){
    return function(res,body){
      if('object' !== typeof body){
        if('{' === body[0])
          body = JSON.parse(body)
      }
      if('object' === typeof body && body.error){
        if(body.error.message) throw new Error(body.error.message)
        if(body.error) throw new Error(body.error)
      }
      if(200 !== res.statusCode){
        throw new Error(
          'Invalid response (' + res.statusCode + ')' +
          ' to ' + res.request.href + ' body: ' + util.inspect(body))
      }
      return [res,body]
    }
  }