13 lines
419 B
Go
13 lines
419 B
Go
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.")
|
|
)
|