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
|
||||
clarification in the spec.
|
||||
- Add support for account locking, according to MSC3939.
|
||||
- Allow constructing `error::ErrorBody::NotJson` outside of this crate.
|
||||
|
||||
Bug fixes:
|
||||
|
||||
|
@ -316,7 +316,6 @@ pub enum ErrorBody {
|
||||
Json(JsonValue),
|
||||
|
||||
/// A response body that is not valid JSON.
|
||||
#[non_exhaustive]
|
||||
NotJson {
|
||||
/// The raw bytes of the response body.
|
||||
bytes: Bytes,
|
||||
|
Loading…
x
Reference in New Issue
Block a user