[This is preliminary documentation and is subject to change.]

Represents the HTTP Status Code returned by a Handler.

Namespace: Simple.WebSimple.WebSimple::Web
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public struct StatusIEquatable<Status>

VB

Public Structure Status Implements IEquatable(Of Status)

C++

public value class StatusIEquatable<Status>

The StatusStatusStatus type exposes the following members.

Constructors

Name Description
Status(int)New(Integer)Status(int) Initializes a new instance of the StatusStatusStatus struct.
Status(int, string)New(Integer, String)Status(int, String^) Initializes a new instance of the StatusStatusStatus struct.
Top

Properties

Name Description
CodeCodeCode Gets the HTTP status code.
DescriptionDescriptionDescription Gets the HTTP status description.
IsSuccessIsSuccessIsSuccess Gets a value indicating whether this Status represents success.
Top

Methods

Name Description
Equals(object)Equals(Object)Equals(Object^) Determines whether the specified Object is equal to this instance. (Overrides Object.Equals(Object)Object.Equals(Object)Object::Equals(Object^).)
Equals(Status)Equals(Status)Equals(Status) Indicates whether the current object is equal to another object of the same type.
GetHashCode()GetHashCode()GetHashCode() Returns a hash code for this instance. (Overrides Object.GetHashCode()Object.GetHashCode()Object::GetHashCode().)
GetType()GetType()GetType() Gets the Type of the current instance. (Inherited from ObjectObjectObject.)
ToString()ToString()ToString() Returns an HTTP formatted representation of the StatusStatusStatus. (Overrides Object.ToString()Object.ToString()Object::ToString().)
Top

Operators

Name Description
  Equality(Status, Status)Equality(Status, Status)Equality(Status, Status) Implements the operator ==.
  Implicit(int)Implicit(Integer)Implicit(int) Performs an implicit conversion from Int32 to StatusStatusStatus.
  Implicit(string)Implicit(String)Implicit(String^) Performs an implicit conversion from Int32 to StatusStatusStatus.
  Inequality(Status, Status)Inequality(Status, Status)Inequality(Status, Status) Implements the operator !=.
Top

Fields

Name Description
  CreatedCreatedCreated Indicates that a request was processed successfully and a new resource was created.
  InternalServerErrorInternalServerErrorInternalServerError Indicates that everything is horrible, and you should hide in a cupboard until it's all over.
  NoContentNoContentNoContent Nothing to see here.
  OKOKOK The basic "everything's OK" status.
  SeeOtherSeeOtherSeeOther A redirect to another resource, commonly used after a POST operation to prevent refreshes.
  TemporaryRedirectTemporaryRedirectTemporaryRedirect A Temporary redirect, e.g. for a login page.
Top

Remarks

Has an implicit cast from Int32.

See Also

Simple.WebSimple.WebSimple::Web Namespace