Provides the WazuhApiError class, which allows to parse
error responses from the wazuh api.
- exception WazuhApiError(http_status_code: int, **kwargs)#
Bases:
ExceptionWazuh API related exception which indicates a problem with a request. The received status code and received information may be used to understand the underlying issue.
- dapi_errors: list[WazuhDapiError] = None#
Optional list of dapi_error information.
- detail: str#
Error details that lead to the exception.
- error_code: int | None#
Optional Wazuh error code.
- http_status_code: int#
HTTP status code.
- remediation: str | None#
Optional additional information that help to resolve the issue.
- title: str#
Title of the error.