Errors.createRequestError

Creates a com.ebasetech.xi.services.HttpRequestError supplying an error message and the response code. This is typically used to create HTTP response failure errors, for example the server responds with a 400 Bad Request code

returns HttpRequestError

Parameters

java.lang.String  error,  int  code,