mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
14 lines
540 B
Go
14 lines
540 B
Go
package middlewares
|
|
|
|
import "errors"
|
|
|
|
// 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."
|
|
|
|
var errMissingXForwardedHost = errors.New("Missing header X-Forwarded-Host")
|
|
var errMissingXForwardedProto = errors.New("Missing header X-Forwarded-Proto")
|