Can't write 400 status code
udivankin opened this issue · 1 comments
udivankin commented
Here's the code:
const http = require('mitol');
let server = http.createServer((req, res) => {
res.statusCode = 400;
res.end();
});
server.listen(8099, () => {
console.log('Example app listening on port 8099!')
});
Nothing is returned in response (lets say timeout).
When trying to set e.g statusCode = 404, it works as expected.
Helidium commented
I have added the missing status code messages. Now it should be possible to set the status message.