Add error codes for relative paths