added error codes to templates