Fixed error status and message reporting for restful request (leftover from VuFind 1).