10 lines
262 B
JavaScript
10 lines
262 B
JavaScript
/**
|
||
* Sets the HTTP status for the response. It is a chainable alias of Node’s `response.statusCode`.
|
||
*
|
||
* @param res Response
|
||
*/
|
||
export const status = (res) => (status) => {
|
||
res.statusCode = status;
|
||
return res;
|
||
};
|
||
//# sourceMappingURL=status.js.map
|