1
0

added docs for error codes

This commit is contained in:
kolaente
2018-10-06 18:32:33 +02:00
parent 1ddb819c31
commit 56dc781594
2 changed files with 44 additions and 1 deletions

View File

@ -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.