11 matches across 1 files for func main path:examples/error-pages/index.js path:examples/error-pages/index.js lang:JavaScript
snippet_mode: auto · sorted by relevance
examples/error-pages/index.js JAVASCRIPT 11 matches · showing 5 view file →
28// Routes
29
30app.get('/', function(req, res){
31 res.render('index.ejs');
32});
· · ·
33
34app.get('/404', function(req, res, next){
35 // trigger a 404 since no other middleware
36 // will match /404 after this one, and we're not
· · ·
39});
40
41app.get('/403', function(req, res, next){
42 // trigger a 403 error
43 var err = new Error('not allowed!');
· · ·
46});
47
48app.get('/500', function(req, res, next){
49 // trigger a generic (500) error
50 next(new Error('keyboard cat!'));
· · ·
61// $ curl http://localhost:3000/notfound -H "Accept: text/plain"
62
63app.use(function(req, res, next){
64 res.status(404);
65
+ 6 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.