diff --git a/lib/superapi/api.js b/lib/superapi/api.js
index <HASH>..<HASH> 100644
--- a/lib/superapi/api.js
+++ b/lib/superapi/api.js
@@ -236,7 +236,7 @@ Api.prototype = {
   },
 
   status: function (name, handler) {
-    if (!this.middlewares) {
+    if (!this.middleware("status")) {
       this.register("status", Api.middlewares.status());
     }
fix(status): fix issue if status is not the first middleware defined