diff --git a/index.js b/index.js index 82e8341..4a0bd12 100644 --- a/index.js +++ b/index.js @@ -47,7 +47,7 @@ function invokeController(options, app) { } if (instance[method]) { // pre set request status - if (ctx.body === undefined && options.preSetStatus) { + if (ctx.body === undefined && options.preSetStatus && !ctx.status) { ctx.status = options.preSetStatus; } return instance[method]();