about summary refs log tree commit diff stats
path: root/src/codes.h
blob: 334f0ce5d758b59c0a2b78c06f62dacd8fd70719 (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
#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
  };
  
};

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

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