Janus
Home
Demos
Documentation
Cite us!
Support
Community
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
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
53
#define JANUS_ERROR_JSEP_UNKNOWN_TYPE 464
54
55
#define JANUS_ERROR_JSEP_INVALID_SDP 465
56
57
#define JANUS_ERROR_TRICKE_INVALID_STREAM 466
58
59
#define JANUS_ERROR_INVALID_ELEMENT_TYPE 467
60
61
#define JANUS_ERROR_SESSION_CONFLICT 468
62
63
#define JANUS_ERROR_UNEXPECTED_ANSWER 469
64
65
#define JANUS_ERROR_TOKEN_NOT_FOUND 470
66
67
#define JANUS_ERROR_WEBRTC_STATE 471
68
69
73
const
char
*
janus_get_api_error
(
int
error);
74
75
#endif
janus_get_api_error
const char * janus_get_api_error(int error)
Helper method to get a string representation of an API error code.
Definition:
apierror.c:3