Improve signin messaging
This commit is contained in:
parent
b4e6bac566
commit
72a8ed5c16
7 changed files with 110 additions and 20 deletions
|
|
@ -36,3 +36,6 @@ func NewErrorStatus(status int, mesg_format string, args ...any) *ErrorWithStatu
|
|||
func NewForbidden(mesg_format string, args ...any) *ErrorWithStatus {
|
||||
return NewErrorStatus(http.StatusForbidden, mesg_format, args...)
|
||||
}
|
||||
func NewUnauthorized(mesg_format string, args ...any) *ErrorWithStatus {
|
||||
return NewErrorStatus(http.StatusUnauthorized, mesg_format, args...)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue