-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy patherrors.go
17 lines (17 loc) · 939 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package main
const (
// ErrCodeBadContent is reported when the reports content could not be parsed.
ErrCodeBadContent = "BAD_CONTENT";
// ErrCodeBadHeader is reported when a header was not able to be parsed.
ErrCodeBadHeader = "BAD_HEADER";
// ErrCodeContentTooLarge is reported when the reported content size is too large.
ErrCodeContentTooLarge = "CONTENT_TOO_LARGE";
// ErrCodeDisallowedApp is reported when a report was rejected due to the report being sent from an unsupported
ErrCodeDisallowedApp = "DISALLOWED_APP";
// ErrCodeMethodNotAllowed is reported when you have used the wrong method for an endpoint.
ErrCodeMethodNotAllowed = "METHOD_NOT_ALLOWED";
// ErrCodeRejected is reported when the submission could be understood but was rejected by RejectionConditions.
ErrCodeRejected = "REJECTED";
// ErrCodeUnknown is a catch-all error when the appliation does not have a specific error.
ErrCodeUnknown = "UNKNOWN";
)