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
Name | Type | Optional | Description |
---|---|---|---|
res | ServerResponse | No | The server response to populate |
error | unknown | No | The error to check and use |