mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Merge if branches with the same status code
This commit is contained in:
parent
5c5b4f4de2
commit
68487d512a
@ -102,17 +102,17 @@ static Poco::Net::HTTPResponse::HTTPStatus exceptionCodeToHTTPStatus(int excepti
|
||||
exception_code == ErrorCodes::CANNOT_PARSE_QUOTED_STRING ||
|
||||
exception_code == ErrorCodes::CANNOT_PARSE_DATE ||
|
||||
exception_code == ErrorCodes::CANNOT_PARSE_DATETIME ||
|
||||
exception_code == ErrorCodes::CANNOT_PARSE_NUMBER)
|
||||
return HTTPResponse::HTTP_BAD_REQUEST;
|
||||
else if (exception_code == ErrorCodes::UNKNOWN_ELEMENT_IN_AST ||
|
||||
exception_code == ErrorCodes::CANNOT_PARSE_NUMBER ||
|
||||
|
||||
exception_code == ErrorCodes::UNKNOWN_ELEMENT_IN_AST ||
|
||||
exception_code == ErrorCodes::UNKNOWN_TYPE_OF_AST_NODE ||
|
||||
exception_code == ErrorCodes::TOO_DEEP_AST ||
|
||||
exception_code == ErrorCodes::TOO_BIG_AST ||
|
||||
exception_code == ErrorCodes::UNEXPECTED_AST_STRUCTURE)
|
||||
return HTTPResponse::HTTP_BAD_REQUEST;
|
||||
else if (exception_code == ErrorCodes::SYNTAX_ERROR)
|
||||
return HTTPResponse::HTTP_BAD_REQUEST;
|
||||
else if (exception_code == ErrorCodes::INCORRECT_DATA ||
|
||||
exception_code == ErrorCodes::UNEXPECTED_AST_STRUCTURE ||
|
||||
|
||||
exception_code == ErrorCodes::SYNTAX_ERROR ||
|
||||
|
||||
exception_code == ErrorCodes::INCORRECT_DATA ||
|
||||
exception_code == ErrorCodes::TYPE_MISMATCH)
|
||||
return HTTPResponse::HTTP_BAD_REQUEST;
|
||||
else if (exception_code == ErrorCodes::UNKNOWN_TABLE ||
|
||||
@ -125,9 +125,9 @@ static Poco::Net::HTTPResponse::HTTPStatus exceptionCodeToHTTPStatus(int excepti
|
||||
exception_code == ErrorCodes::UNKNOWN_DIRECTION_OF_SORTING ||
|
||||
exception_code == ErrorCodes::UNKNOWN_AGGREGATE_FUNCTION ||
|
||||
exception_code == ErrorCodes::UNKNOWN_FORMAT ||
|
||||
exception_code == ErrorCodes::UNKNOWN_DATABASE_ENGINE)
|
||||
return HTTPResponse::HTTP_NOT_FOUND;
|
||||
else if (exception_code == ErrorCodes::UNKNOWN_TYPE_OF_QUERY)
|
||||
exception_code == ErrorCodes::UNKNOWN_DATABASE_ENGINE ||
|
||||
|
||||
exception_code == ErrorCodes::UNKNOWN_TYPE_OF_QUERY)
|
||||
return HTTPResponse::HTTP_NOT_FOUND;
|
||||
else if (exception_code == ErrorCodes::QUERY_IS_TOO_LARGE)
|
||||
return HTTPResponse::HTTP_REQUESTENTITYTOOLARGE;
|
||||
|
Loading…
Reference in New Issue
Block a user