better return code handling

The paper creation did not return any value in case of success. This was
in contradiction with the general guidelines for the Rest Api.
fix return values
improved error message