http_errors
Api Code Documentation / Exports / http_errors
#
Table of contents#
Functions#
Functions#
toHttpErrorâ–¸ toHttpError(error
): Object
Converts an error object to an appropriate http error
#
ParametersName | Type |
---|---|
error | unknown |
#
ReturnsObject
an error object containing appropriate status code and an {@link ErrorBody}
Name | Type |
---|---|
body | ErrorBody |
code | number |