dont save if no code
check for http err