Skip to content

Commit 8192995

Browse files
committed
set code to 404 for missing files
1 parent 8d64df9 commit 8192995

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/mock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ exports.petstore = function (arg1, arg2, arg3, arg4) {
102102

103103
return;
104104
} else {
105-
res.writeHead(200, {'Content-Type': 'text/plain'});
105+
res.writeHead(404, {'Content-Type': 'text/plain'});
106106
res.write('404 Not Found\n');
107107
res.end();
108108
}

0 commit comments

Comments
 (0)