Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Commit 35a8042

Browse files
committed
Secret not found error returning 404 instead of 204
1 parent 2762e04 commit 35a8042

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

main.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,6 @@ func handleSecret(w http.ResponseWriter, r *http.Request) {
7878
errCode = err.StatusCode
7979
}
8080

81-
switch err {
82-
case api.ErrSecretNotFound:
83-
errCode = http.StatusNoContent
84-
}
85-
8681
if errCode == 0 {
8782
errCode = http.StatusInternalServerError
8883
}

0 commit comments

Comments
 (0)