Add error code to example