client-api: allow constructing ErrorBody::NotJson
This commit is contained in:
parent
506b340302
commit
7a8ca45bbe
@ -37,6 +37,7 @@ Improvements:
|
|||||||
- Add the `get_login_token` field to `Capabilities`, according to a
|
- Add the `get_login_token` field to `Capabilities`, according to a
|
||||||
clarification in the spec.
|
clarification in the spec.
|
||||||
- Add support for account locking, according to MSC3939.
|
- Add support for account locking, according to MSC3939.
|
||||||
|
- Allow constructing `error::ErrorBody::NotJson` outside of this crate.
|
||||||
|
|
||||||
Bug fixes:
|
Bug fixes:
|
||||||
|
|
||||||
|
@ -316,7 +316,6 @@ pub enum ErrorBody {
|
|||||||
Json(JsonValue),
|
Json(JsonValue),
|
||||||
|
|
||||||
/// A response body that is not valid JSON.
|
/// A response body that is not valid JSON.
|
||||||
#[non_exhaustive]
|
|
||||||
NotJson {
|
NotJson {
|
||||||
/// The raw bytes of the response body.
|
/// The raw bytes of the response body.
|
||||||
bytes: Bytes,
|
bytes: Bytes,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user