/* @(#)46       1.3  src/rpc/sys_idl/ncastat.idl, rpc.idl.src, os2dce21.dss, 960602a.1  5/17/95  09:46:39 */
/*
 * COMPONENT_NAME:  rpc.idl.src 
 *
 * FUNCTIONS: 
 *
 * ORIGINS: 72
 *
 */
/*
 * (c) Copyright 1990, 1991 OPEN SOFTWARE FOUNDATION, INC.
 * ALL RIGHTS RESERVED
 * COPYRIGHT NOTICE
 * Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
 * ALL RIGHTS RESERVED (DCE).  See the file named COPYRIGHT.DCE in the
 * src directory for the full copyright text.
 */
/*
 * HISTORY
 * $Log: ncastat.idl,v $
 * Revision 1.1.6.1  1994/08/23  20:19:10  tom
 *      Add fault: nca_s_fault_codeset_conv_error (OT 10410)
 *      [1994/08/23  20:17:24  tom]
 *
 * Revision 1.1.4.3  1993/08/17  21:06:58  hinxman
 * 	Add a fault type for transactional RPC
 * 	[1993/08/17  21:04:57  hinxman]
 *
 * Revision 1.1.4.2  1993/07/07  20:12:22  ganni
 * 	reduced stub idl sources
 * 	[1993/07/07  19:40:31  ganni]
 * 
 * Revision 1.1.2.3  1993/01/04  00:10:08  bbelch
 * 	Embedding copyright notice
 * 	[1993/01/03  20:15:26  bbelch]
 * 
 * Revision 1.1.2.2  1992/12/23  21:20:26  zeliff
 * 	Embedding copyright notice
 * 	[1992/12/23  15:47:07  zeliff]
 * 
 * Revision 1.1  1992/01/19  03:13:48  devrcs
 * 	Initial revision
 * 
 * $EndLog$
 */
/*
**  Copyright (c) 1989, 1990, 1993 by
**      Hewlett-Packard Company, Palo Alto, Ca. & 
**      Digital Equipment Corporation, Maynard, Mass.
**
**
**  NAME:
**
**      ncastat.idl
**
**  FACILITY:
**
**      Network Computing Architecture (NCA)
**
**  ABSTRACT:
**
**  NCA-defined status codes.
**
**
*/

interface nca_status

{

/*
 * NCA-defined status codes.  These codes are "well-known" and part of
 * the NCA/RPC protocols (i.e., they are sent back by servers in the body
 * of NCA/RPC/DG's "reject" messages and in the status field of the header
 * of NCA/RPC/CN's "fault" packets.)
 * 
 * For historical reasons, the first few status codes are derived from
 * status codes use by NCS, the Apollo implementation of NCA.
 * 
 * There is some confusion surrounding which errors are part of the NCA
 * RPC request/response protocol(s) proper and which are defined by NIDL
 * and the presentation protocol (e.g., NDR) in use.  Errors like "unknown
 * interface" are in the former category.  Application errors (like
 * divide-by-zero) are in the latter category.  (In NCA/RPC/DG and
 * NCA/RPC/CN, application errors are indicated in the body of "fault"
 * packets; the contents of these bodies are untouched by the RPC protocol
 * proper and are simply conveyed from server to client application.)
 * 
 * This interface defines errors code in both categories.  The application
 * ones are strictly speaking part of NIDL/NDR and are named
 * "nca_s_fault_..." to distinguish them.
 */

const long  nca_s_comm_failure              = 0x1C010001;  /* unable to get response from server */
const long  nca_s_op_rng_error              = 0x1C010002;  /* bad operation number in call */
const long  nca_s_unk_if                    = 0x1C010003;  /* unknown interface */
const long  nca_s_wrong_boot_time           = 0x1C010006;  /* client passed server wrong server boot time */
const long  nca_s_you_crashed               = 0x1C010009;  /* a restarted server called back a client */
const long  nca_s_proto_error               = 0x1C01000B;  /* someone messed up the protocol */
const long  nca_s_out_args_too_big          = 0x1C010013;  /* output args too big */
const long  nca_s_server_too_busy           = 0x1C010014;  /* server is too busy to handle call */
const long  nca_s_fault_string_too_long     = 0x1C010015;  /* string parameter longer than declared max len */
const long  nca_s_unsupported_type          = 0x1C010017;  /* no implementation of generic operation for object */
                                    /* NO NEW 1C01xxxx STATUS CODES HERE! */

const long  nca_s_fault_int_div_by_zero     = 0x1C000001;
const long  nca_s_fault_addr_error          = 0x1C000002;
const long  nca_s_fault_fp_div_zero         = 0x1C000003;
const long  nca_s_fault_fp_underflow        = 0x1C000004;
const long  nca_s_fault_fp_overflow         = 0x1C000005;
const long  nca_s_fault_invalid_tag         = 0x1C000006;
const long  nca_s_fault_invalid_bound       = 0x1C000007;
const long  nca_s_rpc_version_mismatch      = 0x1C000008;
const long  nca_s_unspec_reject             = 0x1C000009;  /* call rejected, but no more detail */
const long  nca_s_bad_actid                 = 0x1C00000A;
const long  nca_s_who_are_you_failed        = 0x1C00000B;
const long  nca_s_manager_not_entered       = 0x1C00000C;
const long  nca_s_fault_cancel              = 0x1C00000D;
const long  nca_s_fault_ill_inst            = 0x1C00000E;
const long  nca_s_fault_fp_error            = 0x1C00000F;
const long  nca_s_fault_int_overflow        = 0x1C000010;
/*                                            0x1C000011; not in use */
const long  nca_s_fault_unspec              = 0x1C000012;
const long  nca_s_fault_remote_comm_failure = 0x1C000013;
const long  nca_s_fault_pipe_empty          = 0x1C000014;
const long  nca_s_fault_pipe_closed         = 0x1C000015;
const long  nca_s_fault_pipe_order          = 0x1C000016;
const long  nca_s_fault_pipe_discipline     = 0x1C000017;
const long  nca_s_fault_pipe_comm_error     = 0x1C000018;
const long  nca_s_fault_pipe_memory         = 0x1C000019;
const long  nca_s_fault_context_mismatch    = 0x1C00001A;
const long  nca_s_fault_remote_no_memory    = 0x1C00001B;
const long  nca_s_invalid_pres_context_id   = 0x1C00001C;
const long  nca_s_unsupported_authn_level   = 0x1C00001D;
const long  nca_s_invalid_checksum          = 0x1C00001F;
const long  nca_s_invalid_crc               = 0x1C000020;
const long  nca_s_fault_user_defined        = 0x1C000021;
const long  nca_s_fault_tx_open_failed      = 0x1C000022;
const long  nca_s_fault_codeset_conv_error  = 0x1C000023;

        /*
         * Add new codes above this comment.  Use "nca_s_fault_..." for
         * errors defined by NIDL/NDR; leave out "_fault" for errors
         * defined by NCA/RPC request/response protocol.
         */

}
