jivan
jivan copied to clipboard
Replace jsonError() with generalized content-type error function.
Right now, errors that are reported back to service users are always in json despite html support being added. This is easy to resolve, by replacing the handlers.go jsonError() with a function that takes a content type string as a parameter.