Handling ValueError in the case of incorrect parameters in a model query. It will return an Error 410 Gone response
Tests to handle it