Correct error return in server WS