mirror of https://gitee.com/bigwinds/arangodb
use caps, log warning when using unknown HTTP response codes
This commit is contained in:
parent
a02905d12a
commit
f812c6bd04
|
@ -29,6 +29,7 @@
|
|||
#include "HttpResponse.h"
|
||||
|
||||
#include "Basics/StringUtils.h"
|
||||
#include "Logger/Logger.h"
|
||||
#include "ProtocolBuffers/arangodb.pb.h"
|
||||
|
||||
using namespace triagens::basics;
|
||||
|
@ -77,12 +78,14 @@ string HttpResponse::responseString (HttpResponseCode code) {
|
|||
case UNPROCESSABLE_ENTITY: return "422 Unprocessable Entity";
|
||||
|
||||
case SERVER_ERROR: return "500 Internal Error";
|
||||
case NOT_IMPLEMENTED: return "501 Not implemented";
|
||||
case NOT_IMPLEMENTED: return "501 Not Implemented";
|
||||
case BAD_GATEWAY: return "502 Bad Gateway";
|
||||
case SERVICE_UNAVAILABLE: return "503 Service Temporarily Unavailable";
|
||||
|
||||
// default
|
||||
default: return StringUtils::itoa((int) code) + " (unknown HttpResponseCode)";
|
||||
default:
|
||||
LOGGER_WARNING << "unknown HTTP response code " << code << " returned";
|
||||
return StringUtils::itoa((int) code) + " (unknown HttpResponseCode)";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue