Replaced RuntimeExceptions with appropriate OverseerExceptions.
Added error codes to rpc calls.