The response is returned as text/plain in case of exception. Pecan 1.4 uses accept header to decide the response content type. This also affected gnocciclient and has been fixed there. https://github.com/gnocchixyz/python-gnocchiclient/pull/110 Change-Id: Ia46259e960493c92a6701a165518ef87b03c5c2d