decode response