Rest fix status bnc#789343

Errors in docs and parameters passing + error handling in the controllers