Skip to content

Commit

Permalink
QD-7185 Status code 404 also treated as correct decline of token.
Browse files Browse the repository at this point in the history
  • Loading branch information
avafanasiev authored and tiulpin committed Dec 1, 2023
1 parent 61d4a03 commit 4c811c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloud/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func requestLicenseDataAttempt(endpoint string, token string) ([]byte, error) {
if err != nil {
return nil, fmt.Errorf("Reading license response failed\n. %w", err)
}
if resp.StatusCode == 403 {
if resp.StatusCode == 403 || resp.StatusCode == 404 {
return nil, TokenDeclinedError
}
if resp.StatusCode == 200 {
Expand Down

0 comments on commit 4c811c9

Please sign in to comment.