ApolloHttpException
class ApolloHttpException(val statusCode: Int, val headers: List<HttpHeader>, val body: BufferedSource?, message: String, cause: Throwable? = null) : ApolloException
The response was received but the media type was application/json
and the code was not 2xx. Note that application/graphql-response+json
do not throw this exception.
See https://graphql.github.io/graphql-over-http/draft/.
Parameters
Constructors
Link copied to clipboard
constructor(statusCode: Int, headers: List<HttpHeader>, body: BufferedSource?, message: String, cause: Throwable? = null)