added docs for error codes
This commit is contained in:
parent
1ddb819c31
commit
56dc781594
2 changed files with 44 additions and 1 deletions
|
|
@ -756,7 +756,7 @@ const ErrCodeTeamAlreadyHasAccess = 6004
|
|||
|
||||
// HTTPError holds the http error description
|
||||
func (err ErrTeamAlreadyHasAccess) HTTPError() HTTPError {
|
||||
return HTTPError{HTTPCode: http.StatusBadRequest, Code: ErrCodeTeamAlreadyHasAccess, Message: "This team already has access."}
|
||||
return HTTPError{HTTPCode: http.StatusConflict, Code: ErrCodeTeamAlreadyHasAccess, Message: "This team already has access."}
|
||||
}
|
||||
|
||||
// ErrUserIsMemberOfTeam represents an error where a user is already member of a team.
|
||||
|
|
|
|||
Reference in a new issue