Skip to content

Commit 53f5cb6

Browse files
committed
fix(api): org name taken error now returns HTTP status code 409, closes
1 parent f797b19 commit 53f5cb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func CreateOrg(c *middleware.Context, cmd m.CreateOrgCommand) Response {
8484
cmd.UserId = c.UserId
8585
if err := bus.Dispatch(&cmd); err != nil {
8686
if err == m.ErrOrgNameTaken {
87-
return ApiError(400, "Organization name taken", err)
87+
return ApiError(409, "Organization name taken", err)
8888
}
8989
return ApiError(500, "Failed to create organization", err)
9090
}

0 commit comments

Comments
 (0)