@Immutable public class SdkErrorHttpMetadata extends Object
| Constructor and Description |
|---|
SdkErrorHttpMetadata(SdkHttpMetadata httpMetadata,
byte[] responseContent) |
| Modifier and Type | Method and Description |
|---|---|
Optional<String> |
header(String headerName)
Get a specific header from the error response.
|
int |
httpStatusCode() |
String |
requestId() |
ByteBuffer |
responseContent() |
public SdkErrorHttpMetadata(SdkHttpMetadata httpMetadata, byte[] responseContent)
public Optional<String> header(String headerName)
headerName - Header to retrieve.public String requestId()
public int httpStatusCode()
public ByteBuffer responseContent()
ByteBuffer.Copyright © 2019. All rights reserved.