Function setch

Do fetch and throw on unexpected status code, see ExpectedStatus docs for details