I'd prefer all of these errors to have the first letter capitalized and also have a period (e.g. "Data must be bytes."). Otherwise it looks good.