Give optionally the expected status code. By default, the expected status code is 200 (OK status).