aboutsummaryrefslogtreecommitdiff
path: root/errors.go
diff options
context:
space:
mode:
Diffstat (limited to 'errors.go')
-rw-r--r--errors.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/errors.go b/errors.go
index 7f08980..2da10e6 100644
--- a/errors.go
+++ b/errors.go
@@ -35,6 +35,14 @@ func errAttackNotAllowed() error {
return res
}
+var errAttackHandlerNotSet = libhttp.EndpointResponse{
+ E: liberrors.E{
+ Code: http.StatusNotAcceptable,
+ Message: `the Attack handler is not set`,
+ Name: `ERR_ATTACK_HANDLER_NOT_SET`,
+ },
+}
+
func errInternal(err error) error {
res := &libhttp.EndpointResponse{
E: liberrors.E{