Back to product page

StatusCodes enumeration


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

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

MemberValueDescription
_OK200OK
Continue100Continue
SwitchingProtocols101Switchingprotocols
OK200OK
Created201Created
Accepted202Accepted
NonAuthoritativeInformation203Non-AuthoritativeInformation
NoContent204NoContent
ResetContent205ResetContent
PartialContent206PartialContent
MultipleChoices300MultipleChoices
MovedPermanently301MovedPermanently
MovedTemporarily302MovedTemporarily
SeeOther303SeeOther
NotModified304NotModified
UseProxy305UseProxy
BadRequest400BadRequest
Unauthorized401Unauthorized
PaymentRequired402PaymentRequired
Forbidden403Forbidden
NotFound404NotFound
MethodNotAllowed405MethodNotAllowed
NotAcceptable406NotAccepted
ProxyAuthenticationRequired407ProxyAuthenticationRequired
RequestTimeout408RequestTime-out
Conflict409Conflict
Gone410Gone
LengthRequired411LengthRequired
PreconditionFailed412Pre-ConditionFailed
RequestEntityTooLarge413RequestEntityTooLarge
RequestURITooLarge414RequestURITooLarge
UnsupportedMediaType415UnsupportedMediaType
RangeNotSatisfiable416RequestedRangeNotSatisfiable
InternalServerError500InternalServerError
NotImplemented501NotImplemented
BadGateway502BadGateway
ServiceUnavailable503ServiceUnavailable
GatewayTimeout504GatewayTime-out
HTTPVersionNotSupported505HTTPVersionNotSupported

Platforms

Windows