Writes Error Message to ResponseWriter in json format
Similar to http.Error(w ResponseWriter, error string, code int)
Example of json written is --> {"error":ErrorMessage}
Writes a Response Message to ResponseWriter in json format
Similar to http.Write(string)
Example of json written is --> {"title": Title, "message":Message}