We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f797b19 commit 53f5cb6Copy full SHA for 53f5cb6
pkg/api/org.go
@@ -84,7 +84,7 @@ func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response {
84
cmd.UserId = c.UserId
85
if err := bus.Dispatch(&cmd); err != nil {
86
if err == m.ErrOrgNameTaken {
87
- return ApiError(400, "Organization name taken", err)
+ return ApiError(409, "Organization name taken", err)
88
}
89
return ApiError(500, "Failed to create organization", err)
90
0 commit comments