Return the error code from the EPIC server. Use CFG_FAIL_ON_MISSING_PID to determine whether to abort with
an error, or simply to write the error to flask.log.