9 matches across 1 files for error path:examples/web-service/index.js path:examples/web-service/index.js
snippet_mode: auto · sorted by relevance
examples/web-service/index.js JAVASCRIPT 9 matches · showing 5 view file →
9var app = module.exports = express();
10
11// create an error with .status. we
12// can then use the property in our
13// custom error handler (Connect respects this prop as well)
· · ·
13// custom error handler (Connect respects this prop as well)
14
15function error(status, msg) {
· · ·
15function error(status, msg) {
16 var err = new Error(msg);
17 err.status = status;
· · ·
16 var err = new Error(msg);
17 err.status = status;
18 return err;
· · ·
32
33 // key isn't present
34 if (!key) return next(error(400, 'api key required'));
35
36 // key is invalid
+ 4 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.