RouteInjector/route-injector

View on GitHub
lib/responses/Unauthorized.ts

Summary

Maintainability
A
0 mins
Test Coverage
/**
 * Created by gerard on 27/01/16.
 */
/// <reference path='../../typings/index.d.ts'/>
import RiResponse = require("./Response");
class Unauthorized extends RiResponse {

    constructor(msg: string) {
        super("Unauthorized", msg);
    }

    public getStatusCode() {
        return 401;
    }
}
export = Unauthorized;