Skip to main content
The Deno 2 Release Candidate is here
Learn more
method HttpResponseUtil.prototype.appendErrorToOutput
import { HttpResponseUtil } from "https://deno.land/x/sptaki@1.2.0/utils/HttpResponseUtil.d.ts";

Add an error into the 'warnings' array of the client response message

Parameters

IItemEventRouterResponse

optional
message: string

Error message

optional
errorCode: BackendErrorCodes

Error code

Returns

IItemEventRouterResponse