All files / ima/router RouteNames.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35    5x                 5x                                           5x  
import ns from '../namespace';
 
ns.namespace('ima.router');
 
/**
 * HTTP status code constants, representing the HTTP status codes recognized
 * and processed by this proxy.
 *
 * @enum {string}
 * @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
 */
const RouteNames = Object.freeze({
  /**
	 * The internal route name used for the "not found" error page (the 4XX
	 * HTTP status code error page).
	 *
	 * @const
	 * @type {string}
	 */
  NOT_FOUND: 'notFound',
 
  /**
	 * The internal route name used for the error page (the 5XX HTTP status
	 * code error page).
	 *
	 * @const
	 * @type {string}
	 */
  ERROR: 'error'
});
 
export default RouteNames;
 
ns.ima.router.RouteNames = RouteNames;