MSP-437 implement http error wrapper

This commit is contained in:
d1slike committed 2022-08-04 21:49:13 +03:00
1 parent 71100e8c7b
commit 2c29a2f0a3
1 file changed
-18
-18
View File
@@ -1,18 +0,0 @@
package domain
import (
"github.com/pkg/errors"
)
const ServiceIsNotAvailableErrorMessage = "Service is not available now, please try later"
type Error struct {
ErrorMessage string
ErrorCode string
Details []interface{}
}
var (
ErrAuthorize = errors.New("authorize failed")
ErrAuthenticate = errors.New("authenticate failed")
)