Changing error message on route not found
This commit is contained in:
parent
5cdbc3ebb0
commit
4f3c0e9938
1 changed files with 2 additions and 2 deletions
|
|
@ -65,8 +65,8 @@ const server = http.createServer(async (req, res) => {
|
|||
!/^\/reservations$/.test(url) ||
|
||||
method.toLowerCase() !== 'post'
|
||||
) {
|
||||
Logger.info('Bad request')
|
||||
res.writeHead(400, 'Bad request')
|
||||
Logger.info('Not found')
|
||||
res.writeHead(404, 'Not found')
|
||||
res.end()
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue