We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85c10c1 commit 32f803fCopy full SHA for 32f803f
1 file changed
types.go
@@ -28,6 +28,7 @@ type Pushy struct {
28
29
// Error are simple error responses returned from pushy if request isn't valid
30
type Error struct {
31
+ Code string `json:"code"`
32
Error string `json:"error"`
33
}
34
@@ -133,3 +134,12 @@ type IHTTPClient interface {
133
134
Post(string, string, io.Reader) (*http.Response, error)
135
Do(*http.Request) (*http.Response, error)
136
137
+
138
+const (
139
+ ErrInvalidParam = "INVALID_PARAM"
140
+ ErrInvalidParam = "INVALID_API_KEY"
141
+ ErrInvalidParam = "AUTH_LIMIT_EXCEEDED"
142
+ ErrInvalidParam = "ACCOUNT_SUSPENDED"
143
+ ErrInvalidParam = "RATE_LIMIT_EXCEEDED"
144
+ ErrInvalidParam = "INTERNAL_SERVER_ERROR"
145
+)
0 commit comments