kafka icon indicating copy to clipboard operation
kafka copied to clipboard

added error json response for broker endpoints

Open bjoel opened this issue 8 years ago • 3 comments
trafficstars

bjoel avatar May 05 '17 05:05 bjoel

Can you comment on what this is trying to fix/improve?

steveniemitz avatar May 05 '17 14:05 steveniemitz

Apologies for the late reply. This commit changes the error responses within the broker endpoints to return JSON values. Currently we have a service hitting these endpoints and when something goes wrong (i.e attempting to remove a broker which is currently running) HTML is returned. It is more helpful to return JSON so that our service can interpret the response and react appropriately.

bjoel avatar May 10 '17 06:05 bjoel

Cool, seems good to me. Have you tested the backwards-compat case with an old client -> new server (and vis versa)?

steveniemitz avatar May 12 '17 17:05 steveniemitz