Finally using correct HTTPError, also moved time stamp to finally clause