Error code formatting