MSP-437 implement http error wrapper
This commit is contained in:
1 parent
71100e8c7b
commit
2c29a2f0a3
1 file changed
-18
@@ -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")
|
||||
)
|
||||
Reference in new issue
Block a user