Fix failing test

- use `setCustomStatusCode()` instead of `setStatusCode()`