code: function http500 (req, res, next) {
      if (context.error) {
        context.error.status = 500;
        throw context.error;
      }
  
      next();
    }
docs: Throws an HTTP 500 error if the Swagger API is invalid.
  Calling {@link Middleware#init} again with a valid Swagger API will clear the error.