You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: status_controller.go
    path of file: ./repos/atlantis/server/controllers
    
    the code of the file until where you have to start completion: package controllers

import (
	"encoding/json"
	"fmt"
	"net/http"

	"github.com/runatlantis/atlantis/server/events"
	"github.com/runatlantis/atlantis/server/logging"
)

// StatusController handles the status of Atlantis.
type StatusController struct {
	Logger          logging.SimpleLogging
	Drainer         *events.Drainer
	AtlantisVersion string
}

typ
    
func (d *StatusController) Get(w http.ResponseWriter, _ *http.Request) {
	status := d.Drainer.GetStatus()
	data, err := json.MarshalIndent(&StatusResponse{
		ShuttingDown:    status.ShuttingDown,
		InProgressOps:   status.InProgressOps,
		AtlantisVersion: d.AtlantisVersion,
	}, "", "  ")
	if err != nil {
		w.WriteHeader(http.StatusInternalServerError)
		fmt.Fprintf(w, "Error creating status json response: %s", err)
		return
	}
	w.Header().Set("Content-Type", "application/json")
	w.Write(data) // nolint: errcheck
}