From 5177f366f50fbfb1985234e55f429e02b42d3409 Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Fri, 21 Jun 2024 08:01:46 -1000 Subject: [PATCH] fix: organization 404 write 1 http status (#13629) --- coderd/httpmw/organizationparam.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/coderd/httpmw/organizationparam.go b/coderd/httpmw/organizationparam.go index 9ec0af6a46..a72b361b90 100644 --- a/coderd/httpmw/organizationparam.go +++ b/coderd/httpmw/organizationparam.go @@ -78,10 +78,6 @@ func ExtractOrganizationParam(db database.Store) func(http.Handler) http.Handler } if httpapi.Is404Error(dbErr) { httpapi.ResourceNotFound(rw) - httpapi.Write(ctx, rw, http.StatusNotFound, codersdk.Response{ - Message: fmt.Sprintf("Organization %q not found.", arg), - Detail: "Provide either the organization id or name.", - }) return } if dbErr != nil {