import { RequestResult } from "https://deno.land/x/dax@0.17.0/src/request.ts";
Throws if the response doesn't have a 2xx code.
This might be useful if the request was build with .noThrow()
, but
otherwise this is called automatically for any non-2xx response codes.