Mantid
Loading...
Searching...
No Matches
HTTPStatus.cpp
Go to the documentation of this file.
1// Mantid Repository : https://github.com/mantidproject/mantid
2//
3// Copyright © 2018 ISIS Rutherford Appleton Laboratory UKRI,
4// NScD Oak Ridge National Laboratory, European Spallation Source,
5// Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
6// SPDX - License - Identifier: GPL - 3.0 +
9
10#include <boost/python/enum.hpp>
11#include <boost/python/return_value_policy.hpp>
12
15using namespace boost::python;
16
18 enum_<InternetHelper::HTTPStatus>("HTTPStatus")
19 .value("CONTINUE", InternetHelper::HTTPStatus::CONTINUE)
20 .value("SWITCHING_PROTOCOLS", InternetHelper::HTTPStatus::SWITCHING_PROTOCOLS)
23 .value("ACCEPTED", InternetHelper::HTTPStatus::ACCEPTED)
24 .value("NONAUTHORITATIVE", InternetHelper::HTTPStatus::NONAUTHORITATIVE)
25 .value("NO_CONTENT", InternetHelper::HTTPStatus::NO_CONTENT)
26 .value("RESET_CONTENT", InternetHelper::HTTPStatus::RESET_CONTENT)
27 .value("PARTIAL_CONTENT", InternetHelper::HTTPStatus::PARTIAL_CONTENT)
28 .value("MULTIPLE_CHOICES", InternetHelper::HTTPStatus::MULTIPLE_CHOICES)
29 .value("MOVED_PERMANENTLY", InternetHelper::HTTPStatus::MOVED_PERMANENTLY)
31 .value("SEE_OTHER", InternetHelper::HTTPStatus::SEE_OTHER)
32 .value("NOT_MODIFIED", InternetHelper::HTTPStatus::NOT_MODIFIED)
33 .value("USEPROXY", InternetHelper::HTTPStatus::USEPROXY)
34 .value("TEMPORARY_REDIRECT", InternetHelper::HTTPStatus::TEMPORARY_REDIRECT)
35 .value("BAD_REQUEST", InternetHelper::HTTPStatus::BAD_REQUEST)
36 .value("UNAUTHORIZED", InternetHelper::HTTPStatus::UNAUTHORIZED)
37 .value("PAYMENT_REQUIRED", InternetHelper::HTTPStatus::PAYMENT_REQUIRED)
38 .value("FORBIDDEN", InternetHelper::HTTPStatus::FORBIDDEN)
39 .value("NOT_FOUND", InternetHelper::HTTPStatus::NOT_FOUND)
40 .value("METHOD_NOT_ALLOWED", InternetHelper::HTTPStatus::METHOD_NOT_ALLOWED)
41 .value("NOT_ACCEPTABLE", InternetHelper::HTTPStatus::NOT_ACCEPTABLE)
42 .value("PROXY_AUTHENTICATION_REQUIRED", InternetHelper::HTTPStatus::PROXY_AUTHENTICATION_REQUIRED)
43 .value("REQUEST_TIMEOUT", InternetHelper::HTTPStatus::REQUEST_TIMEOUT)
44 .value("CONFLICT", InternetHelper::HTTPStatus::CONFLICT)
46 .value("LENGTH_REQUIRED", InternetHelper::HTTPStatus::LENGTH_REQUIRED)
47 .value("PRECONDITION_FAILED", InternetHelper::HTTPStatus::PRECONDITION_FAILED)
48 .value("REQUESTENTITYTOOLARGE", InternetHelper::HTTPStatus::REQUESTENTITYTOOLARGE)
49 .value("REQUESTURITOOLONG", InternetHelper::HTTPStatus::REQUESTURITOOLONG)
50 .value("UNSUPPORTEDMEDIATYPE", InternetHelper::HTTPStatus::UNSUPPORTEDMEDIATYPE)
51 .value("REQUESTED_RANGE_NOT_SATISFIABLE", InternetHelper::HTTPStatus::REQUESTED_RANGE_NOT_SATISFIABLE)
52 .value("EXPECTATION_FAILED", InternetHelper::HTTPStatus::EXPECTATION_FAILED)
53 .value("I_AM_A_TEAPOT", InternetHelper::HTTPStatus::I_AM_A_TEAPOT)
54 .value("INTERNAL_SERVER_ERROR", InternetHelper::HTTPStatus::INTERNAL_SERVER_ERROR)
55 .value("NOT_IMPLEMENTED", InternetHelper::HTTPStatus::NOT_IMPLEMENTED)
56 .value("BAD_GATEWAY", InternetHelper::HTTPStatus::BAD_GATEWAY)
57 .value("SERVICE_UNAVAILABLE", InternetHelper::HTTPStatus::SERVICE_UNAVAILABLE)
58 .value("GATEWAY_TIMEOUT", InternetHelper::HTTPStatus::GATEWAY_TIMEOUT)
59 .value("VERSION_NOT_SUPPORTED", InternetHelper::HTTPStatus::VERSION_NOT_SUPPORTED)
60 .export_values();
61}
void export_HTTPStatus()
Definition: HTTPStatus.cpp:17
InternetHelper : A helper class for supporting access to resources through HTTP and HTTPS.