LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
FileTransferStatus.cc
Go to the documentation of this file.
2 
3 #include <iomanip>
4 #include <sstream>
5 #include <string>
6 
7 std::string
9 {
10  switch (stat) {
11  default: {
12  std::ostringstream os;
13  os << "UNKNOWN" << std::setfill('0') << std::setw(3)
14  << static_cast<int>(stat);
15  return os.str();
16  }
18  return "PENDING";
20  return "SUCCESS";
22  return "BAD_REQUEST";
24  return "UNAUTHORIZED";
26  return "PAYMENT_REQUIRED";
28  return "FORBIDDEN";
30  return "NOT_FOUND";
32  return "GONE";
34  return "TOO_LARGE";
36  return "URI_TOO_LONG";
38  return "SERVER_ERROR";
40  return "UNAVAILABLE";
41  }
42 }
std::string translateFileTransferStatus(FileTransferStatus stat)
#define SUCCESS
Definition: DBScan3DAlg.h:39