github.com/outbrain/consul@v1.4.5/ui-v2/app/routes/notfound.js (about) 1 import Route from '@ember/routing/route'; 2 import Error from '@ember/error'; 3 4 export default Route.extend({ 5 beforeModel: function() { 6 const e = new Error('Page not found'); 7 e.code = 404; 8 throw e; 9 }, 10 });