check also the status code