maple.utils.misc.parse_error_response

maple.utils.misc.parse_error_response(resp) str

Parse error response, handling JSON, XML, and plain text.