ethanmdavidson / BucketQuestions

Grails web app for playing the hyper-popular party game known as "Bucket Questions"
http://bucketquestions.app
1 stars 1 forks source link

provide better error handling around getting questions #7

Closed ethanmdavidson closed 6 years ago

ethanmdavidson commented 6 years ago

currently, if they can't get a question (e.g. bucket is empty) it returns a 200 but sticks an error message where the question would go. In order to not let these errors get mulliganed into the bucket, we need to return a different code and handle it appropriately.

ethanmdavidson commented 6 years ago

added a success flag to the json object that gets passed with the response