linkedin / iris

Iris is a highly configurable and flexible service for paging and messaging.
http://iris.claims
BSD 2-Clause "Simplified" License
813 stars 138 forks source link

fix Grafana no active plan error #757

Closed diegocepedaw closed 1 year ago

diegocepedaw commented 1 year ago

use HTTPBadRequest instead of HTTPInvalidParam. HTTPInvalidParam expects at least (msg, param_name) so current code will throw an exception when plan_id is not valid. HTTPBadrequest is valid with just a title https://falcon.readthedocs.io/en/stable/api/errors.html#falcon.HTTPBadRequest