use requests ok codes