Open magsout opened 4 years ago
Sure, I could do that. For the moment, it looks like no endpoint is doing any kind of error handling, as https://webcompat-metrics.herokuapp.com/data/needstriage-timeline?from=2020-05-09 for example just 404s, but if you'd prefer that, I don't see a reason not to throw some error. I don't know if there is some kind of design decision behind not really doing error handling, or if this is just "nobody did it yet", so I'll leave this decision to someone else. Happy to implement it, though, if we need it! :)
@denschub is it possible to send an error when client doesn't send all filters required? Right now, the api send an empty response.