Show / Hide Table of Contents

    Class HttpStatusCodeExtensions

    Extension methods for the System.Net.HttpStatusCode enum.

    Inheritance
    System.Object
    HttpStatusCodeExtensions
    Namespace: Cuemon.Net
    Assembly: Cuemon.Net.dll
    Syntax
    public static class HttpStatusCodeExtensions

    Methods

    | Improve this Doc

    IsClientErrorStatusCode(HttpStatusCode)

    Determines whether the specified statusCode is within the client error related range.

    Declaration
    public static bool IsClientErrorStatusCode(this HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.Net.HttpStatusCode statusCode

    The System.Net.HttpStatusCode to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Net.HttpStatusCode was in the Client Error range (400-499); otherwise, false.

    | Improve this Doc

    IsInformationStatusCode(HttpStatusCode)

    Determines whether the specified statusCode is within the informational range.

    Declaration
    public static bool IsInformationStatusCode(this HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.Net.HttpStatusCode statusCode

    The System.Net.HttpStatusCode to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Net.HttpStatusCode was in the Information range (100-199); otherwise, false.

    | Improve this Doc

    IsRedirectionStatusCode(HttpStatusCode)

    Determines whether the specified statusCode is within the redirecting range.

    Declaration
    public static bool IsRedirectionStatusCode(this HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.Net.HttpStatusCode statusCode

    The System.Net.HttpStatusCode to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Net.HttpStatusCode was in the Redirection range (300-399); otherwise, false.

    | Improve this Doc

    IsServerErrorStatusCode(HttpStatusCode)

    Determines whether the specified statusCode is within the server error related range.

    Declaration
    public static bool IsServerErrorStatusCode(this HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.Net.HttpStatusCode statusCode

    The System.Net.HttpStatusCode to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Net.HttpStatusCode was in the Server Error range (500-599); otherwise, false.

    | Improve this Doc

    IsSuccessStatusCode(HttpStatusCode)

    Determines whether the specified statusCode is within the successful range.

    Declaration
    public static bool IsSuccessStatusCode(this HttpStatusCode statusCode)
    Parameters
    Type Name Description
    System.Net.HttpStatusCode statusCode

    The System.Net.HttpStatusCode to evaluate.

    Returns
    Type Description
    System.Boolean

    true if System.Net.HttpStatusCode was in the Successful range (200-299); otherwise, false.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX