mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
fix: organization 404 write 1 http status (#13629)
This commit is contained in:
@ -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 {
|
||||
|
Reference in New Issue
Block a user