Errors in API responses should be in JSON
selvik opened this issue · 0 comments
selvik commented
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"
}