Add json response when accessible in APIError and DecodeError exceptions