Errors.createServerError

Creates a com.ebasetech.xi.services.HttpServerError supplying an error message and the response code. This should be used when generating generic server errors, for example the server responds with a 500 Server Error code

returns HttpServerError

Parameters

java.lang.String  error,  int  code,