ensure status codes are correct