# gateway_error_handler

> **Function** in `langchain_ibm`

📖 [View in docs](https://reference.langchain.com/python/langchain-ibm/utils/gateway_error_handler)

Decorator to catch ApiRequestFailure on Model Gateway calls.

Logs a uniform warning when the model is not properly registered.

## Signature

```python
gateway_error_handler(
    func: Callable[..., Any],
) -> Callable[..., Any]
```

---

[View source on GitHub](https://github.com/langchain-ai/langchain-ibm/blob/9c14bbf81d1c7654824b315925778e4fa81426d7/libs/ibm/langchain_ibm/utils.py#L89)