@Immutable public class SdkErrorHttpMetadata extends Object
Constructor | Description |
---|---|
SdkErrorHttpMetadata(SdkHttpMetadata httpMetadata,
byte[] responseContent) |
Modifier and Type | Method | 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 © 2017 Amazon Web Services, Inc. All Rights Reserved.