example_app icon indicating copy to clipboard operation
example_app copied to clipboard

swap ".status" and ".send" order for invalid note in in new_note_spa route

Open maizena-y-javascript opened this issue 7 months ago • 0 comments

In the route /new_note_spa, the response for invalid notes called res.send() before res.status(400),
which results in HTTP 200 instead of 400.
This PR swaps the order to res.status(400).send(...) to return the proper status code.

maizena-y-javascript avatar Jun 03 '25 07:06 maizena-y-javascript