(Feat): Initial Commit
This commit is contained in:
12
internal/api/httperrors/push.go
Normal file
12
internal/api/httperrors/push.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package httperrors
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"allaboutapps.dev/aw/go-starter/internal/types"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrConflictPushToken = NewHTTPError(http.StatusConflict, types.PublicHTTPErrorTypePUSHTOKENALREADYEXISTS, "The given token already exists.")
|
||||
ErrNotFoundOldPushToken = NewHTTPError(http.StatusNotFound, types.PublicHTTPErrorTypeOLDPUSHTOKENNOTFOUND, "The old push token does not exists. The new token was saved.")
|
||||
)
|
||||
Reference in New Issue
Block a user