mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
// Copyright (C) 2022 Check Point Software Technologies Ltd. All rights reserved.
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
#ifndef __HTTP_TRANSACTION_ENUM_H__
|
|
#define __HTTP_TRANSACTION_ENUM_H__
|
|
|
|
namespace HttpTransaction {
|
|
|
|
enum class Method { GET, HEAD, POST, DELETE, CONNECT, OPTIONS, TRACE, PATCH, PUT };
|
|
enum class Dir { REQUEST, RESPONSE };
|
|
enum class Verdict { ACCEPT, DROP, INJECT, REDIRECT, NONE, DEFAULT };
|
|
|
|
enum class StatusCode {
|
|
OK = 200,
|
|
CREATED = 201,
|
|
NO_CONTENT = 204,
|
|
NOT_MODIFIED = 304,
|
|
BAD_REQUEST = 400,
|
|
UNAUTHORIZED = 401,
|
|
FORBIDDEN = 403,
|
|
NOT_FOUND = 404,
|
|
CONFLICT = 409,
|
|
INTERNAL_SERVER_ERROR = 500
|
|
};
|
|
|
|
}
|
|
#endif // __HTTP_TRANSACTION_ENUM_H__
|