errors as JSON if application/json is in Accept