added statusCode 200 check