The Apex response classes include standard response methods for Slack's Web API methods. These response methods are indicated on the Apex response classes that support them.
getError()
Gets the error on the response. See the corresponding Slack method's list of errors, for example, calls.add method’s list of errors.
This feature is not generally available. It is not part of your purchased Services. This feature is subject to change, may be discontinued with no notice at any time in SFDC’s sole discretion, and SFDC may never make this feature generally available. Make your purchase decisions only on the basis of generally available products and features. This feature is made available on an AS IS basis and use of this feature is at your sole risk.