Terarea  2
The automation project
Loading...
Searching...
No Matches
status_check.QueryStatus Class Reference
Collaboration diagram for status_check.QueryStatus:
Collaboration graph

Public Member Functions

None __init__ (self)
 
bool send_continue (self, Response response)
 
bool switching_protocols (self, Response response)
 
bool processing (self, Response response)
 
bool early_hints (self, Response response)
 
bool response_is_stale (self, Response response)
 
bool success (self, Response response)
 
bool created (self, Response response)
 
bool accepted (self, Response response)
 
bool non_authoritative_information (self, Response response)
 
bool no_content (self, Response response)
 
bool reset_content (self, Response response)
 
bool partial_content (self, Response response)
 
bool multi_status (self, Response response)
 
bool already_reported (self, Response response)
 
bool im_used (self, Response response)
 
bool multiple_choices (self, Response response)
 
bool moved_permanently (self, Response response)
 
bool found (self, Response response)
 
bool see_other (self, Response response)
 
bool not_modified (self, Response response)
 
bool use_proxy (self, Response response)
 
bool switch_proxy (self, Response response)
 
bool temporary_redirect (self, Response response)
 
bool permanent_redirect (self, Response response)
 
bool bad_request (self, Response response)
 
bool unauthorized (self, Response response)
 
bool payment_required (self, Response response)
 
bool forbidden (self, Response response)
 
bool not_found (self, Response response)
 
bool method_not_allowed (self, Response response)
 
bool not_acceptable (self, Response response)
 
bool proxy_authentication_required (self, Response response)
 
bool request_timeout (self, Response response)
 
bool conflict (self, Response response)
 
bool gone (self, Response response)
 
bool length_required (self, Response response)
 
bool precondition_failed (self, Response response)
 
bool payload_too_large (self, Response response)
 
bool uri_too_long (self, Response response)
 
bool unsupported_media_type (self, Response response)
 
bool range_not_satisfiable (self, Response response)
 
bool expectation_failed (self, Response response)
 
bool im_a_teapot (self, Response response)
 
bool page_expired (self, Response response)
 
bool enhance_your_calm (self, Response response)
 
bool misdirected_request (self, Response response)
 
bool unprocessable_entity (self, Response response)
 
bool locked (self, Response response)
 
bool failed_dependency (self, Response response)
 
bool too_early (self, Response response)
 
bool upgrade_required (self, Response response)
 
bool precondition_required (self, Response response)
 
bool too_many_requests (self, Response response)
 
bool request_header_fields_too_large (self, Response response)
 
bool unavailable_for_legal_reasons (self, Response response)
 
bool invalid_token (self, Response response)
 
bool internal_server_error (self, Response response)
 
bool not_implemented (self, Response response)
 
bool bad_gateway (self, Response response)
 
bool service_unavailable (self, Response response)
 
bool gateway_timeout (self, Response response)
 
bool http_version_not_supported (self, Response response)
 
bool variant_also_negotiates (self, Response response)
 
bool insufficient_storage (self, Response response)
 
bool loop_detected (self, Response response)
 
bool bandwidth_limit_exceeded (self, Response response)
 
bool not_extended (self, Response response)
 
bool network_authentication_required (self, Response response)
 

Protected Member Functions

int _get_status (self, Response response)
 

Detailed Description

_summary_
    This is the class in charge of checking if a response corresponds to a given status.

Definition at line 8 of file status_check.py.

Constructor & Destructor Documentation

◆ __init__()

None status_check.QueryStatus.__init__ ( self)

Definition at line 13 of file status_check.py.

Member Function Documentation

◆ _get_status()

int status_check.QueryStatus._get_status ( self,
Response response )
protected
_summary_
    This function is in charge of getting the status code from the response.
Args:
    response (Response): _description_: The response from the server.
Returns:
    int: _description_: The status code from the response.

Definition at line 16 of file status_check.py.

◆ accepted()

bool status_check.QueryStatus.accepted ( self,
Response response )
 accepted: 202 

Definition at line 65 of file status_check.py.

◆ already_reported()

bool status_check.QueryStatus.already_reported ( self,
Response response )
 already_reported: 208 

Definition at line 95 of file status_check.py.

◆ bad_gateway()

bool status_check.QueryStatus.bad_gateway ( self,
Response response )
 bad_gateway: 502 

Definition at line 326 of file status_check.py.

◆ bad_request()

bool status_check.QueryStatus.bad_request ( self,
Response response )
 bad_request: 400 

Definition at line 154 of file status_check.py.

◆ bandwidth_limit_exceeded()

bool status_check.QueryStatus.bandwidth_limit_exceeded ( self,
Response response )
 bandwidth_limit_exceeded: 509 

Definition at line 361 of file status_check.py.

◆ conflict()

bool status_check.QueryStatus.conflict ( self,
Response response )
 conflict: 409 

Definition at line 199 of file status_check.py.

◆ created()

bool status_check.QueryStatus.created ( self,
Response response )
 created: 201 

Definition at line 60 of file status_check.py.

◆ early_hints()

bool status_check.QueryStatus.early_hints ( self,
Response response )
 early_hints: 103 

Definition at line 43 of file status_check.py.

◆ enhance_your_calm()

bool status_check.QueryStatus.enhance_your_calm ( self,
Response response )
 enhance_your_calm: 420 

Definition at line 254 of file status_check.py.

◆ expectation_failed()

bool status_check.QueryStatus.expectation_failed ( self,
Response response )
 expectation_failed: 417 

Definition at line 239 of file status_check.py.

◆ failed_dependency()

bool status_check.QueryStatus.failed_dependency ( self,
Response response )
 failed_dependency: 424 

Definition at line 274 of file status_check.py.

◆ forbidden()

bool status_check.QueryStatus.forbidden ( self,
Response response )
 forbidden: 403 

Definition at line 169 of file status_check.py.

◆ found()

bool status_check.QueryStatus.found ( self,
Response response )
 found: 302 

Definition at line 117 of file status_check.py.

◆ gateway_timeout()

bool status_check.QueryStatus.gateway_timeout ( self,
Response response )
 gateway_timeout: 504 

Definition at line 336 of file status_check.py.

◆ gone()

bool status_check.QueryStatus.gone ( self,
Response response )
 gone: 410 

Definition at line 204 of file status_check.py.

◆ http_version_not_supported()

bool status_check.QueryStatus.http_version_not_supported ( self,
Response response )
 http_version_not_supported: 505 

Definition at line 341 of file status_check.py.

◆ im_a_teapot()

bool status_check.QueryStatus.im_a_teapot ( self,
Response response )
 im_a_teapot: 418 

Definition at line 244 of file status_check.py.

◆ im_used()

bool status_check.QueryStatus.im_used ( self,
Response response )
 im_used: 226 

Definition at line 100 of file status_check.py.

◆ insufficient_storage()

bool status_check.QueryStatus.insufficient_storage ( self,
Response response )
 insufficient_storage: 507 

Definition at line 351 of file status_check.py.

◆ internal_server_error()

bool status_check.QueryStatus.internal_server_error ( self,
Response response )
 internal_server_error: 500 

Definition at line 316 of file status_check.py.

◆ invalid_token()

bool status_check.QueryStatus.invalid_token ( self,
Response response )
 invalid_token: 498 

Definition at line 309 of file status_check.py.

◆ length_required()

bool status_check.QueryStatus.length_required ( self,
Response response )
 length_required: 411 

Definition at line 209 of file status_check.py.

◆ locked()

bool status_check.QueryStatus.locked ( self,
Response response )
 locked: 423 

Definition at line 269 of file status_check.py.

◆ loop_detected()

bool status_check.QueryStatus.loop_detected ( self,
Response response )
 loop_detected: 508 

Definition at line 356 of file status_check.py.

◆ method_not_allowed()

bool status_check.QueryStatus.method_not_allowed ( self,
Response response )
 method_not_allowed: 405 

Definition at line 179 of file status_check.py.

◆ misdirected_request()

bool status_check.QueryStatus.misdirected_request ( self,
Response response )
 misdirected_request: 421 

Definition at line 259 of file status_check.py.

◆ moved_permanently()

bool status_check.QueryStatus.moved_permanently ( self,
Response response )
 moved_permanently: 301 

Definition at line 112 of file status_check.py.

◆ multi_status()

bool status_check.QueryStatus.multi_status ( self,
Response response )
 multi_status: 207 

Definition at line 90 of file status_check.py.

◆ multiple_choices()

bool status_check.QueryStatus.multiple_choices ( self,
Response response )
 multiple_choices: 300 

Definition at line 107 of file status_check.py.

◆ network_authentication_required()

bool status_check.QueryStatus.network_authentication_required ( self,
Response response )
 network_authentication_required: 511 

Definition at line 371 of file status_check.py.

◆ no_content()

bool status_check.QueryStatus.no_content ( self,
Response response )
 no_content: 204 

Definition at line 75 of file status_check.py.

◆ non_authoritative_information()

bool status_check.QueryStatus.non_authoritative_information ( self,
Response response )
 non_authoritative_information: 203 

Definition at line 70 of file status_check.py.

◆ not_acceptable()

bool status_check.QueryStatus.not_acceptable ( self,
Response response )
 not_acceptable: 406 

Definition at line 184 of file status_check.py.

◆ not_extended()

bool status_check.QueryStatus.not_extended ( self,
Response response )
 not_extended: 510 

Definition at line 366 of file status_check.py.

◆ not_found()

bool status_check.QueryStatus.not_found ( self,
Response response )
 not_found: 404 

Definition at line 174 of file status_check.py.

◆ not_implemented()

bool status_check.QueryStatus.not_implemented ( self,
Response response )
 not_implemented: 501 

Definition at line 321 of file status_check.py.

◆ not_modified()

bool status_check.QueryStatus.not_modified ( self,
Response response )
 not_modified: 304 

Definition at line 127 of file status_check.py.

◆ page_expired()

bool status_check.QueryStatus.page_expired ( self,
Response response )
 page_expired: 419 

Definition at line 249 of file status_check.py.

◆ partial_content()

bool status_check.QueryStatus.partial_content ( self,
Response response )
 partial_content: 206 

Definition at line 85 of file status_check.py.

◆ payload_too_large()

bool status_check.QueryStatus.payload_too_large ( self,
Response response )
 payload_too_large: 413 

Definition at line 219 of file status_check.py.

◆ payment_required()

bool status_check.QueryStatus.payment_required ( self,
Response response )
 payment_required: 402 

Definition at line 164 of file status_check.py.

◆ permanent_redirect()

bool status_check.QueryStatus.permanent_redirect ( self,
Response response )
 permanent_redirect: 308 

Definition at line 147 of file status_check.py.

◆ precondition_failed()

bool status_check.QueryStatus.precondition_failed ( self,
Response response )
 precondition_failed: 412 

Definition at line 214 of file status_check.py.

◆ precondition_required()

bool status_check.QueryStatus.precondition_required ( self,
Response response )
 precondition_required: 428 

Definition at line 289 of file status_check.py.

◆ processing()

bool status_check.QueryStatus.processing ( self,
Response response )
 processing: 102 

Definition at line 38 of file status_check.py.

◆ proxy_authentication_required()

bool status_check.QueryStatus.proxy_authentication_required ( self,
Response response )
 proxy_authentication_required: 407 

Definition at line 189 of file status_check.py.

◆ range_not_satisfiable()

bool status_check.QueryStatus.range_not_satisfiable ( self,
Response response )
 range_not_satisfiable: 416 

Definition at line 234 of file status_check.py.

◆ request_header_fields_too_large()

bool status_check.QueryStatus.request_header_fields_too_large ( self,
Response response )
 request_header_fields_too_large: 431 

Definition at line 299 of file status_check.py.

◆ request_timeout()

bool status_check.QueryStatus.request_timeout ( self,
Response response )
 request_timeout: 408 

Definition at line 194 of file status_check.py.

◆ reset_content()

bool status_check.QueryStatus.reset_content ( self,
Response response )
 reset_content: 205 

Definition at line 80 of file status_check.py.

◆ response_is_stale()

bool status_check.QueryStatus.response_is_stale ( self,
Response response )
 response_is_stale: 110 

Definition at line 48 of file status_check.py.

◆ see_other()

bool status_check.QueryStatus.see_other ( self,
Response response )
 see_other: 303 

Definition at line 122 of file status_check.py.

◆ send_continue()

bool status_check.QueryStatus.send_continue ( self,
Response response )
 send_continue: 100 

Definition at line 28 of file status_check.py.

◆ service_unavailable()

bool status_check.QueryStatus.service_unavailable ( self,
Response response )
 service_unavailable: 503 

Definition at line 331 of file status_check.py.

◆ success()

bool status_check.QueryStatus.success ( self,
Response response )
 success: 200 

Definition at line 55 of file status_check.py.

◆ switch_proxy()

bool status_check.QueryStatus.switch_proxy ( self,
Response response )
 switch_proxy: 306 

Definition at line 137 of file status_check.py.

◆ switching_protocols()

bool status_check.QueryStatus.switching_protocols ( self,
Response response )
 switching_protocols: 101 

Definition at line 33 of file status_check.py.

◆ temporary_redirect()

bool status_check.QueryStatus.temporary_redirect ( self,
Response response )
 temporary_redirect: 307 

Definition at line 142 of file status_check.py.

◆ too_early()

bool status_check.QueryStatus.too_early ( self,
Response response )
 too_early: 425 

Definition at line 279 of file status_check.py.

◆ too_many_requests()

bool status_check.QueryStatus.too_many_requests ( self,
Response response )
 too_many_requests: 429 

Definition at line 294 of file status_check.py.

◆ unauthorized()

bool status_check.QueryStatus.unauthorized ( self,
Response response )
 unauthorized: 401 

Definition at line 159 of file status_check.py.

◆ unavailable_for_legal_reasons()

bool status_check.QueryStatus.unavailable_for_legal_reasons ( self,
Response response )
 unavailable_for_legal_reasons: 451 

Definition at line 304 of file status_check.py.

◆ unprocessable_entity()

bool status_check.QueryStatus.unprocessable_entity ( self,
Response response )
 unprocessable_entity: 422 

Definition at line 264 of file status_check.py.

◆ unsupported_media_type()

bool status_check.QueryStatus.unsupported_media_type ( self,
Response response )
 unsupported_media_type: 415 

Definition at line 229 of file status_check.py.

◆ upgrade_required()

bool status_check.QueryStatus.upgrade_required ( self,
Response response )
 upgrade_required: 426 

Definition at line 284 of file status_check.py.

◆ uri_too_long()

bool status_check.QueryStatus.uri_too_long ( self,
Response response )
 uri_too_long: 414 

Definition at line 224 of file status_check.py.

◆ use_proxy()

bool status_check.QueryStatus.use_proxy ( self,
Response response )
 use_proxy: 305 

Definition at line 132 of file status_check.py.

◆ variant_also_negotiates()

bool status_check.QueryStatus.variant_also_negotiates ( self,
Response response )
 variant_also_negotiates: 506 

Definition at line 346 of file status_check.py.


The documentation for this class was generated from the following file: