2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
9 void Status::set_status(Code status)
15 Status::Code Status::get_status() const
21 void Status::set_reason(const ACE_CString& reason)
23 this->reason_ = reason;
27 const ACE_CString& Status::get_reason() const
33 void Status::set_status_and_reason(Code status)
35 this->reason_ = get_reason (this->code_ = status);
39 bool Status::is_valid () const
41 return this->code_ != INVALID;
45 bool Status::is_ok () const
47 return this->code_ >= HTTP_OK && this->code_ < HTTP_BAD_REQUEST;
51 Status::operator bool() const
53 return this->is_valid ();
57 bool Status::operator !() const
59 return !this->is_valid ();
65 ACE_END_VERSIONED_NAMESPACE_DECL