Search...

populateErrorResponse

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