# < Summary

Information

Class: | Renci.SshNet.Sftp.Responses.SftpStatusResponse
Assembly: | Renci.SshNet
File(s): | \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Responses\SftpStatusResponse.cs

Line coverage
84%

Covered lines: | 16
Uncovered lines: | 3
Coverable lines: | 19
Total lines: | 43
Line coverage: | 84.2%

Branch coverage
75%

Covered branches: | 3
Total branches: | 4
Branch coverage: | 75%

Method coverage

Feature is only available for sponsors

Upgrade to PRO version

# Metrics

Method | Branch coverage | Cyclomatic complexity | Line coverage
--- | --- | --- | ---
get_SftpMessageType() | 100% | 1 | 0%
.ctor(...) | 100% | 1 | 100%
get_StatusCode() | 100% | 1 | 100%
get_ErrorMessage() | 100% | 1 | 100%
get_Language() | 100% | 1 | 100%
LoadData() | 75% | 4 | 83.33%

# File(s)

## \home\appveyor\projects\ssh-net\src\Renci.SshNet\Sftp\Responses\SftpStatusResponse.cs

| # | Line |  | Line coverage
--- | --- | --- | --- | ---
|  | `1` |  | `namespace Renci.SshNet.Sftp.Responses`
|  | `2` |  | `{`
|  | `3` |  | `internal sealed class SftpStatusResponse : SftpResponse`
|  | `4` |  | `{`
|  | `5` |  | `public override SftpMessageTypes SftpMessageType`
|  | `6` |  | `{`
| 0 | `7` |  | `get { return SftpMessageTypes.Status; }`
|  | `8` |  | `}`
|  | `9` |  | ``
|  | `10` |  | `public SftpStatusResponse(uint protocolVersion)`
| 15176 | `11` |  | `: base(protocolVersion)`
| 15176 | `12` |  | `{`
| 15176 | `13` |  | `}`
|  | `14` |  | ``
| 33943 | `15` |  | `public StatusCodes StatusCode { get; private set; }`
|  | `16` |  | ``
| 15511 | `17` |  | `public string ErrorMessage { get; private set; }`
|  | `18` |  | ``
| 15101 | `19` |  | `public string Language { get; private set; }`
|  | `20` |  | ``
|  | `21` |  | `protected override void LoadData()`
| 15101 | `22` |  | `{`
| 15101 | `23` |  | `base.LoadData();`
|  | `24` |  | ``
| 15101 | `25` |  | `StatusCode = (StatusCodes) ReadUInt32();`
|  | `26` |  | ``
| 15101 | `27` |  | `if (ProtocolVersion < 3)`
| 0 | `28` |  | `{`
| 0 | `29` |  | `return;`
|  | `30` |  | `}`
|  | `31` |  | ``
| 15101 | `32` |  | `if (!IsEndOfData)`
| 15101 | `33` |  | `{`
|  | `34` |  | `// the SSH File Transfer Protocol specification states that the error message is UTF-8`
| 15101 | `35` |  | `ErrorMessage = ReadString(Utf8);`
|  | `36` |  | ``
|  | `37` |  | `// the language of the error message; RFC 1766 states that the language code may be`
|  | `38` |  | `// expressed as US-ASCII`
| 15101 | `39` |  | `Language = ReadString(Ascii);`
| 15101 | `40` |  | `}`
| 15101 | `41` |  | `}`
|  | `42` |  | `}`
|  | `43` |  | `}`

# Methods/Properties

get_SftpMessageType()
.ctor(System.UInt32)
get_StatusCode()
get_ErrorMessage()
get_Language()
LoadData()