contiv/auth_proxy

Errors in API responses should be in JSON

selvik opened this issue · 0 comments

#28 (diff)

Technically, everything we return from the API should be JSON... we might want to make a generic errorJSON(w, "foo") that returns a response like the following if we don't already have one:

{
    "error":"foo"
}