implemented dictionary for /better/(?) error code handling

less hard coded, repeating strings

if you want to^^