Fixes to 500 errors for jobs and frontend parsing
I sometimes have GargJobError IDExpired
with 500 status as a response to garg job GET request
it might be useful to change that into a json object
i think i tried to find once where this was but didn't succeed
the frontend expects a json and complains badly about this
SendResponseError (ResponseBodyError (ForeignError "JSON.parse: unexpected character at line 1 column 1 of the JSON data") (rf)
i guess even changing that to "GargJobError IDExpired"
could help (i.e. with quotes)
Another thing is consideration whether IDExpired
should be a 500 error?
https://developer.mozilla.org/en-US/docs/Web/HTTP/Status
It seems more like 404 would do here?