Search...

populateErrorResponse

export declare function populateErrorResponse(res: ServerResponse, error: unknown): boolean;
export declare function populateErrorResponse(res: ServerResponse, error: unknown): boolean;
Tries to populate a server response from an error object
NameTypeOptionalDescription
resServerResponseNoThe server response to populate
errorunknownNoThe error to check and use