We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81fa7fc commit b2b1b2aCopy full SHA for b2b1b2a
src/commands/index.js
@@ -45,7 +45,7 @@ class FtpCommands {
45
log.trace({command: logCommand}, 'Handle command');
46
47
if (!REGISTRY.hasOwnProperty(command.directive)) {
48
- return this.connection.reply(402, 'Command not allowed');
+ return this.connection.reply(502, 'Command not allowed');
49
}
50
51
if (_.includes(this.blacklist, command.directive)) {
test/commands/index.spec.js
@@ -90,7 +90,7 @@ describe('FtpCommands', function () {
90
return commands.handle('bad')
91
.then(() => {
92
expect(mockConnection.reply.callCount).to.equal(1);
93
- expect(mockConnection.reply.args[0][0]).to.equal(402);
+ expect(mockConnection.reply.args[0][0]).to.equal(502);
94
});
95
96
0 commit comments