Skip to content

Custom error messages are overwritten by IIS #56

Open
@yarick123

Description

@yarick123

Hello,

using code like this:

const app = require('express')();
app.use(function (req, res) {
    res.sendStatus(502, "engine mismatch error");
});
app.listen(port);

from node under iisnode, custom error message "engine mismatch error" is overwritten with "Bad Gateway" by IIS. The solution of the problem is in the pull request #39 , thank you @mparq !

Could be this pull request please be merged into the main stream?

Regards
yarick123

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions