Skip to content

Commit 5177f36

Browse files
authored
fix: organization 404 write 1 http status (#13629)
1 parent 0e933f0 commit 5177f36

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

coderd/httpmw/organizationparam.go

-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ func ExtractOrganizationParam(db database.Store) func(http.Handler) http.Handler
7878
}
7979
if httpapi.Is404Error(dbErr) {
8080
httpapi.ResourceNotFound(rw)
81-
httpapi.Write(ctx, rw, http.StatusNotFound, codersdk.Response{
82-
Message: fmt.Sprintf("Organization %q not found.", arg),
83-
Detail: "Provide either the organization id or name.",
84-
})
8581
return
8682
}
8783
if dbErr != nil {

0 commit comments

Comments
 (0)