docs(aio): update HTTP error test example (#22844)

Update the example to match the description preceding it, which refers to the
use of the error method and ErrorEvent rather than the flush method with a
non-2xx status as shown previously.

PR Close #22844
This commit is contained in:
Jonathan Sharpe 2018-03-17 12:50:26 +00:00 committed by Matias Niemelä
parent 4042a84ad6
commit 091b11a4ab
1 changed files with 1 additions and 1 deletions

View File

@ -1034,7 +1034,7 @@ Call `request.flush()` with an error message, as seen in the following example.
<code-example
path="http/src/testing/http-client.spec.ts"
region="404"
region="network-error"
linenums="false">
</code-example>