mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
refactor(server): use httperror.NewError instead of struct [EE-6189] (#10398)
This commit is contained in:
parent
da346cba60
commit
95f3cf6e5b
26 changed files with 39 additions and 35 deletions
|
@ -40,3 +40,7 @@ func Unauthorized(message string, err error) *HandlerError {
|
|||
func Forbidden(message string, err error) *HandlerError {
|
||||
return NewError(http.StatusForbidden, message, err)
|
||||
}
|
||||
|
||||
func Conflict(message string, err error) *HandlerError {
|
||||
return NewError(http.StatusConflict, message, err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue