Error struct update, to seperate CF error codes and HTTP codes