Added expectedHttpStatusCode