2019-04-25 04:52:08 +07:00
|
|
|
package middlewares
|
|
|
|
|
2020-02-13 09:12:37 +07:00
|
|
|
import "errors"
|
|
|
|
|
2019-04-25 04:52:08 +07:00
|
|
|
// InternalError is the error message sent when there was an internal error but it should
|
|
|
|
// be hidden to the end user. In that case the error should be in the server logs.
|
|
|
|
const InternalError = "Internal error."
|
|
|
|
|
|
|
|
// UnauthorizedError is the error message sent when the user is not authorized.
|
|
|
|
const UnauthorizedError = "You're not authorized."
|
2020-02-13 09:12:37 +07:00
|
|
|
|
2020-08-21 08:15:20 +07:00
|
|
|
var errMissingXForwardedHost = errors.New("Missing header X-Forwarded-Host")
|
|
|
|
var errMissingXForwardedProto = errors.New("Missing header X-Forwarded-Proto")
|