UNPKG

307 BTypeScriptView Raw
1/**
2 * Sets response HTTP status code.
3 * Http code will be set only when controller action is successful.
4 * In the case if controller action rejects or throws an exception http code won't be applied.
5 * Must be applied on a controller action.
6 */
7export declare function HttpCode(code: number): Function;