func Error

Description

Error produces an error response in JSON with the following structure, '{"Error":"My error message"}'
The standard plain text net/http Error helper can still be called like this:
http.Error(w, "error message", code)