Cleanup of decode_response()
Initial import