diff --git a/services/auth-app/pkg/service/service.go b/services/auth-app/pkg/service/service.go index 486bafc1b8..53de039fe8 100644 --- a/services/auth-app/pkg/service/service.go +++ b/services/auth-app/pkg/service/service.go @@ -158,7 +158,7 @@ func (a *AuthAppService) HandleCreate(w http.ResponseWriter, r *http.Request) { if _, err := w.Write(b); err != nil { sublog.Error().Err(err).Msg("error writing response") } - w.WriteHeader(http.StatusOK) + w.WriteHeader(http.StatusCreated) } // HandleList handles listing of app tokens