class HttpStatus { public httpStatusList : Map < ( string | number ) , any > ; constructor ( data ? ) { this . httpStatusList = new Map ( [ [ 200 || '200' , ( ) => data ] ] ) ; } param status public init ( data ) { return this . httpStatusList . get ( data . code ) ( ) ; } } export default HttpStatus ;