{"record":{"id":"a23b281280dfff85","repo":"balderdashy/sails","slug":"e-invalid-http-config","errorCode":"E_INVALID_HTTP_CONFIG","errorMessage":"The `sails.config.express` setting is no longer available in Sails 1.0.\\nPlease use `sails.config.http.js` instead (available in `config/http.js` in new apps).","messagePattern":"The `sails\\.config\\.express` setting is no longer available in Sails 1\\.0\\.\\\\nPlease use `sails\\.config\\.http\\.js` instead \\(available in `config/http\\.js` in new apps\\)\\.","errorType":"error_code","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/hooks/http/index.js","lineNumber":146,"sourceCode":"      //  ┌┐ ┌─┐┌─┐┬┌─┬ ┬┌─┐┬─┐┌┬┐┌─┐  ┌─┐┌─┐┌┬┐┌─┐┌─┐┌┬┐┬┌┐ ┬┬  ┬┌┬┐┬ ┬\n      //  ├┴┐├─┤│  ├┴┐│││├─┤├┬┘ ││└─┐  │  │ ││││├─┘├─┤ │ │├┴┐││  │ │ └┬┘\n      //  └─┘┴ ┴└─┘┴ ┴└┴┘┴ ┴┴└──┴┘└─┘  └─┘└─┘┴ ┴┴  ┴ ┴ ┴ ┴└─┘┴┴─┘┴ ┴  ┴\n      //   ┬   ┌┬┐┌─┐┌─┐┬─┐┌─┐┌─┐┌─┐┌┬┐┬┌─┐┌┐┌  ┬ ┬┌─┐┬─┐┌┐┌┬┌┐┌┌─┐┌─┐\n      //  ┌┼─   ││├┤ ├─┘├┬┘├┤ │  ├─┤ │ ││ ││││  │││├─┤├┬┘││││││││ ┬└─┐\n      //  └┘   ─┴┘└─┘┴  ┴└─└─┘└─┘┴ ┴ ┴ ┴└─┘┘└┘  └┴┘┴ ┴┴└─┘└┘┴┘└┘└─┘└─┘\n      // Backwards compatibility and/or deprecation messages for:\n      //  • `sails.config.host`    => `sails.config.explicitHost`.\n      //  • `sails.config.express` => `sails.config.http`.\n      //  • `sails.config.express.loadMiddleware` => `sails.config.http`.\n      //  • `sails.config.cache.maxAge` => `sails.config.http.cache`.\n      if (sails.config.host) {\n        sails.log.debug('The `sails.config.host` setting is deprecated in Sails 1.0.');\n        sails.log.debug('Please use `sails.config.explicitHost` instead.\\n');\n        sails.config.explicitHost = sails.config.host;\n      }\n\n      if (sails.config.express) {\n        throw flaverr({ name: 'userError', code: 'E_INVALID_HTTP_CONFIG' }, new Error(\n          '\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n'+\n          'The `sails.config.express` setting is no longer available in Sails 1.0.\\n'+\n          'Please use `sails.config.http.js` instead (available in `config/http.js` in new apps).\\n'+\n          '-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n'\n        ));\n      }\n\n      if (sails.config.http.loadMiddleware) {\n        throw flaverr({ name: 'userError', code: 'E_INVALID_HTTP_CONFIG' }, new Error(\n          '\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n'+\n          'The `sails.config.http.loadMiddleware` setting is no longer available in Sails 1.0.\\n'+\n          'Please use `sails.config.http.middleware.order` instead.\\n'+\n          '-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n'\n        ));\n      }\n\n      if (sails.config.cache) {\n        throw flaverr({ name: 'userError', code: 'E_INVALID_HTTP_CONFIG' }, new Error(","sourceCodeStart":128,"sourceCodeEnd":164,"githubUrl":"https://github.com/balderdashy/sails/blob/7b76422cc27823df033572bdda5c4910a68b697f/lib/hooks/http/index.js#L128-L164","documentation":"Error \"The `sails.config.express` setting is no longer available in Sails 1.0.\\nPlease use `sails.config.http.js` instead (available in `config/http.js` in new apps).\" thrown in balderdashy/sails.","triggerScenarios":"Thrown at lib/hooks/http/index.js:146 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b76422cc27823df033572bdda5c4910a68b697f","analyzedAt":"2026-09-01T04:01:57.104Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}