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

Commit

Permalink
Secret not found error returning 404 instead of 204
Browse files Browse the repository at this point in the history
  • Loading branch information
florisvdg committed Feb 26, 2019
1 parent 2762e04 commit 35a8042
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ func handleSecret(w http.ResponseWriter, r *http.Request) {
errCode = err.StatusCode
}

switch err {
case api.ErrSecretNotFound:
errCode = http.StatusNoContent
}

if errCode == 0 {
errCode = http.StatusInternalServerError
}
Expand Down

0 comments on commit 35a8042

Please sign in to comment.