API specific 404 that returns a JSON error message
instead of returning a full html page, we should send back a short and simple JSON error message when someone tries to query a page we don't have under /api.
I emailed the WCA software team to say that would like to take on this issue :)
Sure thing @trungams, I've assigned it to you :) Personally I'll be unavailable for the next 10 days, but definitely feel free to open a pull request as soon as you want some feedback from WST/contributors to this repository; we definitely welcome draft or WIP PR to discuss and comment if you're unsure about anything!
@trungams Is this still an issue you are working on?
@UnsolvedCypher Hi, sorry I completely forgot about this. Unfortunately, no. I had a WIP at the time but got caught up with life and all. I don't think I will be able to work on this in the near future :disappointed:
No worries @trungams!
I'm thinking about the best way to do this, and I'm not sure where the actual controller for the endpoint should go. It can't go in the file with the rest of the API because that is only for v0 (so it would only catch /api/v0/(...) URLs and we want to catch /api/(...) as well). It could go with the static pages though it's not exactly a static "page". Does anyone have thoughts on this?