mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-21 19:37:41 +00:00
401 and 403 are forbidden and we'll delete account
This commit is contained in:
parent
a3e69954c8
commit
aaf1fbd98a
1 changed files with 1 additions and 3 deletions
|
@ -178,9 +178,7 @@ func (rc *Client) doRequest(ctx context.Context, r *Request) ([]byte, *RateLimit
|
|||
switch resp.StatusCode {
|
||||
case 200:
|
||||
return bb, rli, err
|
||||
case 401:
|
||||
return nil, rli, ErrInvalidBasicAuth
|
||||
case 403:
|
||||
case 401, 403:
|
||||
return nil, rli, ErrOauthRevoked
|
||||
default:
|
||||
_ = rc.statsd.Incr("reddit.api.errors", r.tags, 0.1)
|
||||
|
|
Loading…
Reference in a new issue