update code sample in error templates