-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
20 lines (17 loc) · 969 Bytes
/
Copy patherrors.go
File metadata and controls
20 lines (17 loc) · 969 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package x
import "errors"
var (
ErrInvalidAuth = errors.New("x: missing required cookie (auth_token or ct0)")
ErrUnauthorized = errors.New("x: authentication failed — session may be expired")
ErrForbidden = errors.New("x: access denied (protected account or private resource)")
ErrNotFound = errors.New("x: resource not found")
ErrSuspended = errors.New("x: account is suspended")
ErrRateLimited = errors.New("x: rate limited")
ErrQueryIDStale = errors.New("x: queryId is stale — use WithQueryIDs or RefreshQueryIDs")
ErrInvalidParams = errors.New("x: invalid or missing required parameters")
ErrPartialResult = errors.New("x: context cancelled; partial result returned")
ErrRequestFailed = errors.New("x: HTTP request failed")
ErrAlreadyRetweeted = errors.New("x: tweet already retweeted")
ErrTweetTooLong = errors.New("x: tweet text exceeds 280 characters")
ErrDMClosed = errors.New("x: recipient has DMs closed")
)