Skip to content

Commit 1b6b495

Browse files
committed
Use 201 for creating secrets
1 parent 47cd78e commit 1b6b495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

enterprise/coderd/oauth2.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func (api *API) postOAuth2ProviderAppSecret(rw http.ResponseWriter, r *http.Requ
299299
return
300300
}
301301
aReq.New = dbSecret
302-
httpapi.Write(ctx, rw, http.StatusOK, codersdk.OAuth2ProviderAppSecretFull{
302+
httpapi.Write(ctx, rw, http.StatusCreated, codersdk.OAuth2ProviderAppSecretFull{
303303
ID: dbSecret.ID,
304304
ClientSecretFull: secret.Formatted,
305305
})

0 commit comments

Comments
 (0)