Addresses issue #26.
Relevant to issue #5. The API sends different responses now.
This PR improves responses. For POST requests, it responds with an HTTP response code and a brief message.
For GET requests, it responds with the game's public data, which now includes a field for the game's progress.
This also helps differentiate between errors related to the user input and the client's handling of the API.
Include game status in JSON response
Include game status and prevent duplicate guesses
Only include HTTP response code for POST methods
Include error codes for fake words and non-word guesses
Addresses issue #26. Relevant to issue #5. The API sends different responses now.
This PR improves responses. For POST requests, it responds with an HTTP response code and a brief message. For GET requests, it responds with the game's public data, which now includes a field for the game's progress. This also helps differentiate between errors related to the user input and the client's handling of the API.