RouteInjector/route-injector

View on GitHub
lib/responses/InternalServerError.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 InternalServerError extends RiResponse {

    constructor(msg?: string) {
        var m = "";
        if(msg) {
            m = msg;
        }
        super("Internal Server Error", msg);
    }

    public getStatusCode() {
        return 500;
    }
}
export = InternalServerError;