[Fix] Handle 404 response correctly when getting not found resources