example_app
example_app copied to clipboard
swap ".status" and ".send" order for invalid note in in new_note_spa route
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.