Skip to content

Commit

Permalink
change 400 to 401 for invalid creds
Browse files Browse the repository at this point in the history
  • Loading branch information
denopink authored Feb 21, 2024
1 parent e3b7266 commit e212920
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion v2/basculehttp/frontDoor.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (fd *frontDoor) handleMissingCredentials(response http.ResponseWriter, err

func (fd *frontDoor) handleInvalidCredentials(response http.ResponseWriter, err *bascule.InvalidCredentialsError) {
response.Header().Set("Content-Type", "text/plain")
response.WriteHeader(http.StatusBadRequest)
response.WriteHeader(http.StatusUnauthorized)
response.Write([]byte(err.Error()))
}

Expand Down

0 comments on commit e212920

Please sign in to comment.