StatusCodes Enumeration
wodWebServer.NET Help file

StatusCodes Enumeration

This is list of status codes that you should return to the client to let him know if his request is successful or not.

public enum StatusCodes

Remarks

This is list of status codes (as defined by HTTP protocol) that you should return to the client to let him know if his request is successful or not. In most cases you will use 200 'OK' value (meaning you will serve the page correctly). 404 'Not Found' is also common when page does not exist.

For other value - use them if you need to, clients know how to behave correctly on these return codes. You should put these values to Response.StatusCode property.

Members

Member Name Description
_OKOK
ContinueContinue
SwitchingProtocolsSwitching protocols
OKOK
CreatedCreated
AcceptedAccepted
NonAuthoritativeInformation Non-Authoritative Information
NoContentNo Content
ResetContentReset Content
PartialContentPartial Content
MultipleChoicesMultiple Choices
MovedPermanentlyMoved Permanently
MovedTemporarilyMoved Temporarily
SeeOtherSee Other
NotModifiedNot Modified
UseProxyUse Proxy
BadRequestBad Request
UnauthorizedUnauthorized
PaymentRequiredPayment Required
ForbiddenForbidden
NotFoundNot Found
MethodNotAllowedMethod Not Allowed
NotAcceptableNot Accepted
ProxyAuthenticationRequiredProxy Authentication Required
RequestTimeoutRequest Time-out
ConflictConflict
GoneGone
LengthRequiredLength Required
PreconditionFailedPre-Condition Failed
RequestEntityTooLargeRequest Entity Too Large
RequestURITooLargeRequest URI Too Large
UnsupportedMediaTypeUnsupported Media Type
RangeNotSatisfiableRequested Range Not Satisfiable
InternalServerErrorInternal Server Error
NotImplementedNot Implemented
BadGatewayBad Gateway
ServiceUnavailableService Unavailable
GatewayTimeoutGateway Time-out
HTTPVersionNotSupportedHTTP Version Not Supported

Requirements

Namespace: WeOnlyDo.Server

Assembly: WeOnlyDo.Server.WebServer (in WeOnlyDo.Server.WebServer.dll)

See Also

WeOnlyDo.Server Namespace