Skip to content

Commit e0fac57

Browse files
committed
fix status code
1 parent e5e27d5 commit e0fac57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/httpmw/provisionerdaemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func ExtractProvisionerDaemonAuthenticated(opts ExtractProvisionerAuthConfig) fu
7373

7474
err := provisionerkey.Validate(key)
7575
if err != nil {
76-
handleOptional(http.StatusBadGateway, codersdk.Response{
76+
handleOptional(http.StatusBadRequest, codersdk.Response{
7777
Message: "provisioner daemon key invalid",
7878
Detail: err.Error(),
7979
})

0 commit comments

Comments
 (0)