Will have an error is the res is not OK