From 61efc20e941153274dfb44628068a9180b1978bd Mon Sep 17 00:00:00 2001 From: Denis Arh Date: Sun, 5 Sep 2021 13:09:11 +0200 Subject: [PATCH] Return 404 on errors.KindNotFound --- pkg/errors/kind.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/errors/kind.go b/pkg/errors/kind.go index 51c4766d1..1d67ab850 100644 --- a/pkg/errors/kind.go +++ b/pkg/errors/kind.go @@ -54,7 +54,7 @@ func (k kind) httpStatus() int { return http.StatusBadRequest case KindNotFound: - return http.StatusBadRequest + return http.StatusNotFound case KindStaleData: return http.StatusConflict