import { HttpResponseMessage } from '../httpResponseMessage' ; import { IHttpActionResult } from '../interfaces' ; export class StatusCodeResult implements IHttpActionResult { constructor ( private statusCode ) { } public async executeAsync ( ) { return new HttpResponseMessage ( this . statusCode ) ; } }