maintenance/maintenance.go
func (s Service) StatusHandler(w http.ResponseWriter, r *http.Request) {
	on, err := s.store.Status()
	if err != nil {
		s.logger.Errorf("maintenance status: %s", err)
		jsonInternalServerErrorResponse(w)
		return
	}
	jsonStatusResponse(w, on)
}
func (s Service) StatusHandler(w http.ResponseWriter, r *http.Request) {
	on, err := s.store.Status()
	if err != nil {
		s.logger.Errorf("maintenance status: %s", err)
		jsonInternalServerErrorResponse(w)
		return
	}
	jsonStatusResponse(w, on)
}
// StatusHandler can be used in JSON-encoded HTTP API
// to check the status of maintenance.