def decode_body(headers: MutableMapping, body: bytes) -> dict:
type_, encoding = parse_content_type(headers)<EOL>decoded_body = body.decode(encoding)<EOL>if type_ == "<STR_LIT:application/json>":<EOL><INDENT>payload = json.loads(decoded_body)<EOL><DEDENT>else:<EOL><INDENT>if decoded_body == "<STR_LIT>":<EOL><INDENT>payload = {"<STR_LIT>": True}<EOL><DEDENT>else:<EOL><INDENT>payload = {"<STR_LIT>": False, "<STR_LIT:data>": decoded_body}<EOL><DEDENT><DEDENT>return payload<EOL>
Decode the response body

For 'application/json' content-type load the body as a dictionary

Args:
    headers: Response headers
    body: Response body

Returns:
    decoded body