about summary refs log tree commit diff stats
path: root/src/codes.h
blob: 676780538db75f86e2c567ea487dfa367b8651d5 (plain) (blame)
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
#ifndef CODES_H_05838D39
#define CODES_H_05838D39

#include <ostream>

namespace twitter {
  
  enum class response {
    ok,
    curl_error,
    bad_auth,
    limited,
    server_error,
    server_unavailable,
    server_overloaded,
    server_timeout,
    suspended,
    bad_token,
    duplicate_status,
    suspected_spam,
    write_restricted,
    bad_length,
    unknown_error,
    invalid_media,
    invalid_response
  };
  
};

std::ostream& operator<<(std::ostream& os, twitter::response r);

#endif /* end of include guard: CODES_H_05838D39 */