Skip to main content
Module

x/http_error/mod.ts>isErrorResponse

An error class for HTTP requests.
Go to Latest
function isErrorResponse
import { isErrorResponse } from "https://deno.land/x/http_error@0.6.0/mod.ts";

Check if the response is an error response that can be converted to an HttpError.

Type Parameters

optional
T extends Record<string, unknown> = Record<string, unknown>

Parameters

response: unknown

Returns

response is ErrorResponse<T>