Return 404 on errors.KindNotFound
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user