Added error types and functions for Drive library.