Assert status code.