Ensuring non-2xx response codes don't throw