Fork me on GitHub
Loading...
Searching...
No Matches
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
22#define JANUS_ERROR_UNAUTHORIZED_PLUGIN 405
24#define JANUS_ERROR_UNKNOWN 490
26#define JANUS_ERROR_TRANSPORT_SPECIFIC 450
28#define JANUS_ERROR_MISSING_REQUEST 452
30#define JANUS_ERROR_UNKNOWN_REQUEST 453
32#define JANUS_ERROR_INVALID_JSON 454
34#define JANUS_ERROR_INVALID_JSON_OBJECT 455
36#define JANUS_ERROR_MISSING_MANDATORY_ELEMENT 456
38#define JANUS_ERROR_INVALID_REQUEST_PATH 457
40#define JANUS_ERROR_SESSION_NOT_FOUND 458
42#define JANUS_ERROR_HANDLE_NOT_FOUND 459
44#define JANUS_ERROR_PLUGIN_NOT_FOUND 460
46#define JANUS_ERROR_PLUGIN_ATTACH 461
48#define JANUS_ERROR_PLUGIN_MESSAGE 462
50#define JANUS_ERROR_PLUGIN_DETACH 463
52#define JANUS_ERROR_JSEP_UNKNOWN_TYPE 464
54#define JANUS_ERROR_JSEP_INVALID_SDP 465
56#define JANUS_ERROR_TRICKE_INVALID_STREAM 466
58#define JANUS_ERROR_INVALID_ELEMENT_TYPE 467
60#define JANUS_ERROR_SESSION_CONFLICT 468
62#define JANUS_ERROR_UNEXPECTED_ANSWER 469
64#define JANUS_ERROR_TOKEN_NOT_FOUND 470
66#define JANUS_ERROR_WEBRTC_STATE 471
68#define JANUS_ERROR_NOT_ACCEPTING_SESSIONS 472
69
70
74const char *janus_get_api_error(int error);
75
76#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