Fork me on GitHub
apierror.h
Go to the documentation of this file.
1 
13 #ifndef _JANUS_API_ERROR_H
14 #define _JANUS_API_ERROR_H
15 
17 #define JANUS_OK 0
18 
20 #define JANUS_ERROR_UNAUTHORIZED 403
21 
22 #define JANUS_ERROR_UNAUTHORIZED_PLUGIN 405
23 
24 #define JANUS_ERROR_UNKNOWN 490
25 
26 #define JANUS_ERROR_TRANSPORT_SPECIFIC 450
27 
28 #define JANUS_ERROR_MISSING_REQUEST 452
29 
30 #define JANUS_ERROR_UNKNOWN_REQUEST 453
31 
32 #define JANUS_ERROR_INVALID_JSON 454
33 
34 #define JANUS_ERROR_INVALID_JSON_OBJECT 455
35 
36 #define JANUS_ERROR_MISSING_MANDATORY_ELEMENT 456
37 
38 #define JANUS_ERROR_INVALID_REQUEST_PATH 457
39 
40 #define JANUS_ERROR_SESSION_NOT_FOUND 458
41 
42 #define JANUS_ERROR_HANDLE_NOT_FOUND 459
43 
44 #define JANUS_ERROR_PLUGIN_NOT_FOUND 460
45 
46 #define JANUS_ERROR_PLUGIN_ATTACH 461
47 
48 #define JANUS_ERROR_PLUGIN_MESSAGE 462
49 
50 #define JANUS_ERROR_PLUGIN_DETACH 463
51 
52 #define JANUS_ERROR_JSEP_UNKNOWN_TYPE 464
53 
54 #define JANUS_ERROR_JSEP_INVALID_SDP 465
55 
56 #define JANUS_ERROR_TRICKE_INVALID_STREAM 466
57 
58 #define JANUS_ERROR_INVALID_ELEMENT_TYPE 467
59 
60 #define JANUS_ERROR_SESSION_CONFLICT 468
61 
62 #define JANUS_ERROR_UNEXPECTED_ANSWER 469
63 
64 #define JANUS_ERROR_TOKEN_NOT_FOUND 470
65 
66 #define JANUS_ERROR_WEBRTC_STATE 471
67 
68 
72 const char *janus_get_api_error(int error);
73 
74 #endif
const char * janus_get_api_error(int error)
Helper method to get a string representation of an API error code.
Definition: apierror.c:3