func RespondJSONObjectWithCode(w http.ResponseWriter, code int, obj interface{}) {
	setCommonHeaders(w)
	var err error
	var jsonBytes []byte
	if obj != nil {
		jsonBytes, err = json.Marshal(obj)
	}
	writeJSONBytes(w, jsonBytes, err, code)
}
RespondJSONObjectWithCode writes the object and status header to the response. Important to note that if this is being
used for an error case then an empty return will need to immediately follow the call to this function
package endpoint
import (
	"encoding/json"
	"net/http"
	m "github.com/datastax/cassandra-data-apis/rest/models"
)