350 matches across 25 files for error lang:JavaScript lang:JavaScript lang:JavaScript
snippet_mode: summary · sorted by relevance
lib/response.js JAVASCRIPT 23 matches · showing 1 view file →
16var createError = require('http-errors')
+ 22 more matches in this file
lib/application.js JAVASCRIPT 12 matches · showing 1 view file →
146 * If no callback is provided, then default error handlers will respond
+ 11 more matches in this file
examples/auth/index.js JAVASCRIPT 5 matches · showing 1 view file →
31 var err = req.session.error;
+ 4 more matches in this file
examples/route-middleware/index.js JAVASCRIPT 5 matches · showing 1 view file →
32 next(new Error('Failed to load user ' + req.params.id));
+ 4 more matches in this file
examples/web-service/index.js JAVASCRIPT 9 matches · showing 1 view file →
11// create an error with .status. we
+ 8 more matches in this file
lib/view.js JAVASCRIPT 2 matches · showing 1 view file →
61 throw new Error('No default engine was specified and no extension was provided.');
+ 1 more matches in this file
lib/utils.js JAVASCRIPT 2 matches · showing 1 view file →
148 throw new TypeError('unknown value for etag function: ' + val);
+ 1 more matches in this file
examples/params/index.js JAVASCRIPT 3 matches · showing 1 view file →
7var createError = require('http-errors')
+ 2 more matches in this file
examples/mvc/index.js JAVASCRIPT 3 matches · showing 1 view file →
19// set views for error and 404 pages
+ 2 more matches in this file
examples/mvc/lib/boot.js JAVASCRIPT 1 matches view file →
63 throw new Error('unrecognized route: ' + name + '.' + key);
examples/error/index.js JAVASCRIPT 11 matches · showing 1 view file →
14// error handling middleware have an arity of 4
+ 10 more matches in this file
lib/request.js JAVASCRIPT 2 matches · showing 1 view file →
66 throw new TypeError('name argument is required to req.get');
+ 1 more matches in this file
examples/resource/index.js JAVASCRIPT 2 matches · showing 1 view file →
46 res.send(users[req.params.id] || { error: 'Cannot find user' });
+ 1 more matches in this file
examples/view-locals/index.js JAVASCRIPT 1 matches view file →
22// delegating errors to next(err)
examples/search/index.js JAVASCRIPT 2 matches · showing 1 view file →
43 console.error('Error initializing Redis:', err);
+ 1 more matches in this file
examples/route-separation/user.js JAVASCRIPT 1 matches view file →
20 var err = new Error('cannot find user ' + id);
examples/downloads/index.js JAVASCRIPT 1 matches view file →
29 if (err.status !== 404) return next(err); // non-404 error
examples/error-pages/index.js JAVASCRIPT 20 matches · showing 1 view file →
17// our custom "verbose errors" setting
+ 19 more matches in this file
test/app.render.js JAVASCRIPT 6 matches · showing 1 view file →
61 it('should handle render error throws', function(done){
+ 5 more matches in this file
test/app.router.js JAVASCRIPT 33 matches · showing 1 view file →
919 next(new Error('fail'));
+ 32 more matches in this file
test/Router.js JAVASCRIPT 18 matches · showing 1 view file →
48 throw new Error('should not be called')
+ 17 more matches in this file
test/express.json.js JAVASCRIPT 30 matches · showing 1 view file →
43 // The old node error message modification in body parser is catching this
+ 29 more matches in this file
test/express.raw.js JAVASCRIPT 10 matches · showing 1 view file →
149 it('should not error when inflating', function (done) {
+ 9 more matches in this file
test/Route.js JAVASCRIPT 11 matches · showing 1 view file →
128 throw new Error('not me!');
+ 10 more matches in this file
test/express.urlencoded.js JAVASCRIPT 16 matches · showing 1 view file →
306 it('should not error when inflating', function (done) {
+ 15 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.