Changing error message on route not found
This commit is contained in:
parent
3cd22e0e3c
commit
e25b97072a
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