public static Mono < Throwable > buildError ( ClientResponse response ) { return Mono . error ( new CredHubException ( response . statusCode ( ) ) ) ; }
Helper method to return an appropriate error if a request to CredHub returns with an error code .