-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.go
24 lines (23 loc) · 965 Bytes
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package magiclinksdev
const (
// ContentTypeJSON is the content type for JSON.
ContentTypeJSON = "application/json"
// DefaultRelativePathRedirect is the default relative path for redirecting.
DefaultRelativePathRedirect = "redirect"
// HeaderContentType is the content type header.
HeaderContentType = "Content-Type"
// LogFmt is the log format.
LogFmt = "%s\nError: %s"
// LogErr is the log error.
LogErr = "error"
// LogRequestBody is key for logging the request body.
LogRequestBody = "requestBody"
// LogResponseBody is key for logging the response body.
LogResponseBody = "responseBody"
// ResponseInternalServerError is the response for internal server errors.
ResponseInternalServerError = "Internal server error."
// ResponseTooManyRequests is the response for too many requests.
ResponseTooManyRequests = "Too many requests."
// ResponseUnauthorized is the response for unauthorized requests.
ResponseUnauthorized = "Unauthorized."
)