fixed broken import in docs/extending.rst

I looked in the history and it looks like there was change from HttpError to BadRequest, but one import was still importing HttpError, this patch fixes it.