aboutsummaryrefslogtreecommitdiffstats
path: root/src/orchestrator/api/projecthandler.go
diff options
context:
space:
mode:
authorEric Multanen <eric.w.multanen@intel.com>2020-09-09 17:54:10 +0000
committerGerrit Code Review <gerrit@onap.org>2020-09-09 17:54:10 +0000
commitbca6932e54ff0495947d8a4f1862339a69d386f8 (patch)
treef8f26a5ec72e1fc30c37a2a4320efb81750bda94 /src/orchestrator/api/projecthandler.go
parentce8b729d7fe0c1b0589dff43710a26cf46e5fa52 (diff)
parenta512a6d07e844f8e1d24608a0f1e4265bb85d341 (diff)
Merge "GET project Returns 404 instead of 500"
Diffstat (limited to 'src/orchestrator/api/projecthandler.go')
-rw-r--r--src/orchestrator/api/projecthandler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/orchestrator/api/projecthandler.go b/src/orchestrator/api/projecthandler.go
index 6b512804..f130d283 100644
--- a/src/orchestrator/api/projecthandler.go
+++ b/src/orchestrator/api/projecthandler.go
@@ -126,7 +126,7 @@ func (h projectHandler) getHandler(w http.ResponseWriter, r *http.Request) {
projects, err := h.client.GetAllProjects()
if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
+ http.Error(w, err.Error(), http.StatusNotFound)
return
}
@@ -147,7 +147,7 @@ func (h projectHandler) getHandler(w http.ResponseWriter, r *http.Request) {
ret, err := h.client.GetProject(name)
if err != nil {
- http.Error(w, err.Error(), http.StatusInternalServerError)
+ http.Error(w, err.Error(), http.StatusNotFound)
return
}