diff --git a/lib/cartodb/server.js b/lib/cartodb/server.js index 08ec1a66..3849417a 100644 --- a/lib/cartodb/server.js +++ b/lib/cartodb/server.js @@ -409,6 +409,12 @@ function setupLogger(app, opts) { }; app.use(global.log4js.connectLogger(global.log4js.getLogger(), _.defaults(loggerOpts, {level: 'info'}))); } + + // default X-Tiler-Errors header + app.use((req, res, next) => { + res.set('X-Tiler-Errors', '{}'); + next(); + }); } function surrogateKeysCacheBackends(serverOptions) {