standardizing error types