Closed diegocepedaw closed 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
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