code: function checkForError(resp) {
    if ('code' in resp) {
      throw errors.create(
        errors.types.BAD_REQUEST,
        errors.formatErrMsg(resp, ''),
        {body: resp}
      )
    }
    return resp
  }
docs: TODO: replace with default handler in requestSingle/requestBatch variants