Altered the ServiceUtils.handleRemoteError method to take a map of parameters instead of individual arguments except for the HTTP response object.