Skip to content

Commit 0562d2c

Browse files
committed
return 404 when member of org not found
1 parent 4e23ea7 commit 0562d2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/organizationparam.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func ExtractOrganizationMemberParam(db database.Store) func(http.Handler) http.H
7676
UserID: user.ID,
7777
})
7878
if errors.Is(err, sql.ErrNoRows) {
79-
httpapi.Write(rw, http.StatusForbidden, httpapi.Response{
79+
httpapi.Write(rw, http.StatusNotFound, httpapi.Response{
8080
Message: "Not a member of the organization.",
8181
})
8282
return

0 commit comments

Comments
 (0)