make proper use of exceptions, add runtimexception handler to rest api streaming