code: func SendResponse(w http.ResponseWriter, data interface{}, rCode int) {
  	rw := responseWriter{
  		ResponseWriter: w,
  		code:           rCode,
  	}
  
  	err := json.NewEncoder(rw).Encode(dOutput{Data: data, Status: rCode})
  	if err != nil {
  		/*
  			In case of encoding error, send "internal server error" after
  			logging the actual error.
  		*/
  		LOGHANDLER.Error(err)
  		R500(w, ErrInternalServer)
  	}
  }
docs: // SendResponse is used to respond to any request (JSON response) based on the code, data etc.