
org.swaggertools.demo.client.HttpStatusException Maven / Gradle / Ivy
package org.swaggertools.demo.client;
import org.apache.http.Header;
import java.util.List;
public class HttpStatusException extends RuntimeException {
private final int statusCode;
private final String statusText;
private final byte[] responseBody;
private final List responseHeaders;
public HttpStatusException(int statusCode, String statusText, byte[] responseBody, List responseHeaders) {
this.statusCode = statusCode;
this.statusText = statusText;
this.responseBody = responseBody;
this.responseHeaders = responseHeaders;
}
public int getStatusCode() {
return statusCode;
}
public String getStatusText() {
return statusText;
}
public byte[] getResponseBody() {
return responseBody;
}
public List getResponseHeaders() {
return responseHeaders;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy