Uploaded image for project: 'Multicloud'
  1. Multicloud
  2. MULTICLOUD-967

Return 404 error on GET request on missing profile

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • None
    • None
    • MULTICLOUD-K8S
    • None

      Currently K8splugin returns 500 HTTP Code on missing profile event. If it would return 404 error, it would be much easier to extract missing profile from internal server errors.

      [INFO] Running 'curl -s -w %{http_code} -o /tmp/tmp.4hvp7lahDv localhost:9015/v1/rb/definition/x/test/profile/test'
      [INFO] Server replied with status: 500
      Get Resource Bundle Profile: Error finding master table: mongo: no documents in result
      

            kbanka kbanka
            kbanka kbanka
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: