Create lookup table for error handling