Метод | Описание | |
---|---|---|
BadRequest ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 400.
|
|
Forbidden ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 403.
|
|
InternalServerError ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 500.
|
|
NotFound ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 404.
|
|
ServiceUnavailable ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 503.
|
|
Unauthorized ( string source, ushort code, string description ) : HttpResponseException |
Creates a fault exception with the HTTP status code 401.
|
Метод | Описание | |
---|---|---|
Create ( HttpStatusCode statusCode, |
||
Create ( HttpStatusCode statusCode, string source, ushort code, string description ) : HttpResponseException |
public static BadRequest ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
public static Forbidden ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
public static InternalServerError ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
public static NotFound ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
public static ServiceUnavailable ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |
public static Unauthorized ( string source, ushort code, string description ) : HttpResponseException | ||
source | string | The source of the fault. |
code | ushort | The code of the fault. |
description | string | A human-readable description of what went wrong. |
Результат | HttpResponseException |