MCPcopy Create free account
hub / github.com/apify/impit / raise_for_status

Method raise_for_status

impit-python/src/response.rs:277–284  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

275 }
276
277 fn raise_for_status(&self) -> PyResult<()> {
278 if self.status_code >= 400 {
279 return Err(
280 ImpitPyError(impit::errors::ImpitError::HTTPStatusError(self.status_code)).into(),
281 );
282 }
283 Ok(())
284 }
285
286 fn aclose(slf: Py<Self>, py: Python<'_>) -> PyResult<Bound<'_, PyAny>> {
287 pyo3_async_runtimes::tokio::future_into_py(py, async move {

Callers

nothing calls this directly

Calls 2

ImpitPyErrorClass · 0.85
HTTPStatusErrorClass · 0.50

Tested by

no test coverage detected