Tries to populate a server response from an error object
Returns
true
if the error is known and the response object was populated, otherwise false
Name | Type | Optional | Description |
---|---|---|---|
res | ServerResponse | No | The server response to populate |
error | unknown | No | The error to check and use |