Skip to content

Add error response field to InvalidResponseCodeException #6853

@chrisfillmore

Description

@chrisfillmore

[REQUIRED] Use case description

I would like to include the HTTP response body in an InvalidResponseCodeException, so that I can read the response.

In particular, our license server sends back specific error codes which we need to triage.

Proposed solution

Add a new field to InvalidResponseCodeException which stores the value returned from HttpURLConnection#getErrorStream() (or string equivalent).

Alternatives considered

We could make our license request without using Exo's APIs. But I think making the change in Exo would be useful for everyone, and backwards-compatible.

I can make a pull request, with your support.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions