about summary refs log tree commit diff stats
path: root/src/codes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/codes.h')
-rw-r--r--src/codes.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/codes.h b/src/codes.h new file mode 100644 index 0000000..334f0ce --- /dev/null +++ b/src/codes.h
@@ -0,0 +1,31 @@
1#ifndef CODES_H_05838D39
2#define CODES_H_05838D39
3
4#include <ostream>
5
6namespace twitter {
7
8 enum class response {
9 ok,
10 curl_error,
11 bad_auth,
12 limited,
13 server_error,
14 server_unavailable,
15 server_overloaded,
16 server_timeout,
17 suspended,
18 bad_token,
19 duplicate_status,
20 suspected_spam,
21 write_restricted,
22 bad_length,
23 unknown_error,
24 invalid_media
25 };
26
27};
28
29std::ostream& operator<<(std::ostream& os, twitter::response r);
30
31#endif /* end of include guard: CODES_H_05838D39 */