FeignBadGateway class
The error of a call answered with 502 Bad Gateway: a proxy or gateway got a bad answer from the server behind it.
- Inheritance
-
- Object
- FeignException
- FeignServerException
- FeignBadGateway
Constructors
- FeignBadGateway(String message, HttpRequest? request, String body, HttpHeaders headers)
- The exception FeignException.errorStatus builds for a 502 response, with its message, request, body and headers.
Properties
- cause → Object?
-
The error that caused this one, such as an
HttpTransportExceptionfor a failed connection;nullwhen none.finalinherited - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
What happened, in Feign's form:
[404 Not Found] during [GET] to [<url>] [<method key>].finalinherited - request → HttpRequest?
-
The request that failed, when known.
finalinherited
- responseBody → String?
-
The response body as text, often an error message or a problem
document from the server;
nullwithout a response.finalinherited - responseHeaders → HttpHeaders?
-
The response headers;
nullwithout a response.finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
The status of the response;
-1when no response was received.finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
The class, the message and a preview of the responseBody, as
Feign's message has: the whole body under 400 bytes, else its first
200 characters and its size (
... (5120 bytes)). responseBody keeps all of it.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited