log the HTTP code in retriever_resource