One of the requirements is that for buy() and sell(), if I do not put a positive integer for the text box for the number of stocks, my code should send a 400 message. I coded this in:
<input autocomplete="off" autofocus class="form-control" name="shares" placeholder="Shares" type="number" step="1" min="1"/>
This code DOES reject negative, zero, and non-integer inputs. However, when a user tries to enter one of these types, HTML sends to my server 200. Is there a way to dictate this message to send 400 instead?