mirror of
https://github.com/christianselig/apollo-backend
synced 2024-11-24 20:57:43 +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 {
|
switch resp.StatusCode {
|
||||||
case 200:
|
case 200:
|
||||||
return bb, rli, err
|
return bb, rli, err
|
||||||
case 401:
|
case 401, 403:
|
||||||
return nil, rli, ErrInvalidBasicAuth
|
|
||||||
case 403:
|
|
||||||
return nil, rli, ErrOauthRevoked
|
return nil, rli, ErrOauthRevoked
|
||||||
default:
|
default:
|
||||||
_ = rc.statsd.Incr("reddit.api.errors", r.tags, 0.1)
|
_ = rc.statsd.Incr("reddit.api.errors", r.tags, 0.1)
|
||||||
|
|
Loading…
Reference in a new issue