Adding some basic error codes to transport interface