# 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/68e9b09f8cbc8d2310e57a6a7eb51cde0956a3b0/libs/ibm/langchain_ibm/utils.py#L89)