diff --git a/lib/core/renderer.js b/lib/core/renderer.js index c1f4059943..196a7a6441 100644 --- a/lib/core/renderer.js +++ b/lib/core/renderer.js @@ -315,7 +315,7 @@ export default class Renderer extends Tapable { const sendResponse = (content, type = 'text/html') => { // Set Headers res.statusCode = err.statusCode - res.statusMessage = this.options.debug ? err.message : err.name + res.statusMessage = err.name res.setHeader('Content-Type', type + '; charset=utf-8') res.setHeader('Content-Length', Buffer.byteLength(content))