CDX: Add setStatusCode method