How to handle the response of all types of requests in one handler, but also uniquely handle every request with Alamofire and Moya
<p>In my app I use <a href="https://github.com/petester42/Moya" rel="nofollow">Moya</a> and <a href="https://github.com/Alamofire/Alamofire" rel="nofollow">Alamofire</a> (And also Moya/RxSwift and <a href="https://github.com/ivanbruel/Moya-ObjectMapper" rel="nofollow">Moya-ObjectMapper</a>) libraries for all network requests and responses.</p>

<p>I would like to handle the response of all types of requests in one handler, but also uniquely handle every request.</p>

<p>For example for any request I can get the response "Not valid Version", I would like to avoid to check in every response if this error arrived.</p>

<p>Is there an elegant way to handle this use case with <code>Moya</code>?</p>