Source file constants.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
(** Internal - Low level protocol description *)
(***********************************)
(* AUTOGENERATED FILE: DO NOT EDIT *)
(* ./gen_spec.exe -type constants amqp0-9-1.extended.xml *)
(***********************************)


(* Constants *)
(* spec/gen_spec.ml:220 *)
let frame_method = 1
(* spec/gen_spec.ml:220 *)
let frame_header = 2
(* spec/gen_spec.ml:220 *)
let frame_body = 3
(* spec/gen_spec.ml:220 *)
let frame_heartbeat = 8
(* spec/gen_spec.ml:220 *)
let frame_min_size = 4096
(* spec/gen_spec.ml:220 *)
let frame_end = 206

(** Indicates that the method completed successfully. This reply code is reserved for future use - the current protocol design does not use positive confirmation and reply codes are sent only in case of an error. *)
(* spec/gen_spec.ml:220 *)
let reply_success = 200

(** The client attempted to transfer content larger than the server could accept at the present time. The client may retry at a later time. *)
(* spec/gen_spec.ml:220 *)
let content_too_large = 311

(** When the exchange cannot deliver to a consumer when the immediate flag is set. As a result of pending data on the queue or the absence of any consumers of the queue. *)
(* spec/gen_spec.ml:220 *)
let no_consumers = 313

(** An operator intervened to close the connection for some reason. The client may retry at some later date. *)
(* spec/gen_spec.ml:220 *)
let connection_forced = 320

(** The client tried to work with an unknown virtual host. *)
(* spec/gen_spec.ml:220 *)
let invalid_path = 402

(** The client attempted to work with a server entity to which it has no access due to security settings. *)
(* spec/gen_spec.ml:220 *)
let access_refused = 403

(** The client attempted to work with a server entity that does not exist. *)
(* spec/gen_spec.ml:220 *)
let not_found = 404

(** The client attempted to work with a server entity to which it has no access because another client is working with it. *)
(* spec/gen_spec.ml:220 *)
let resource_locked = 405

(** The client requested a method that was not allowed because some precondition failed. *)
(* spec/gen_spec.ml:220 *)
let precondition_failed = 406

(** The sender sent a malformed frame that the recipient could not decode. This strongly implies a programming error in the sending peer. *)
(* spec/gen_spec.ml:220 *)
let frame_error = 501

(** The sender sent a frame that contained illegal values for one or more fields. This strongly implies a programming error in the sending peer. *)
(* spec/gen_spec.ml:220 *)
let syntax_error = 502

(** The client sent an invalid sequence of frames, attempting to perform an operation that was considered invalid by the server. This usually implies a programming error in the client. *)
(* spec/gen_spec.ml:220 *)
let command_invalid = 503

(** The client attempted to work with a channel that had not been correctly opened. This most likely indicates a fault in the client layer. *)
(* spec/gen_spec.ml:220 *)
let channel_error = 504

(** The peer sent a frame that was not expected, usually in the context of a content header and body. This strongly indicates a fault in the peer's content processing. *)
(* spec/gen_spec.ml:220 *)
let unexpected_frame = 505

(** The server could not complete the method because it lacked sufficient resources. This may be due to the client creating too many of some type of entity. *)
(* spec/gen_spec.ml:220 *)
let resource_error = 506

(** The client tried to work with some entity in a manner that is prohibited by the server, due to security settings or by some other criteria. *)
(* spec/gen_spec.ml:220 *)
let not_allowed = 530

(** The client tried to use functionality that is not implemented in the server. *)
(* spec/gen_spec.ml:220 *)
let not_implemented = 540

(** The server could not complete the method because of an internal error. The server may require intervention by an operator in order to resume normal operations. *)
(* spec/gen_spec.ml:220 *)
let internal_error = 541