Return 400 instead of 500 on rest request param validation

XMLWordPrintable

    • Type: Task
    • Resolution: Done
    • Priority: L3 - Default
    • 3.3.0-alpha1, 3.3.0
    • Affects Version/s: None
    • Component/s: backend
    • None
    • Not defined

      Context:
      Some endpoints like for instance /alert return HTTP 500 errors codes on request param validation. Which isn't a good fit as this is a client error thus should be 400.

      AT:

      • actual client errors that are signaled with a 500 response code return 400, this affects at least the following rest resourceS:
        • `/alert`

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Sebastian Bathke
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: