"kpm restore" only caches http response with 200 status code

parent #817