diff options
| author | Zeyla Hellyer <[email protected]> | 2018-01-01 11:56:38 -0800 |
|---|---|---|
| committer | Zeyla Hellyer <[email protected]> | 2018-01-01 11:56:38 -0800 |
| commit | be43836839a31714f58e3ffe81dd4b0aeab2ab59 (patch) | |
| tree | dfcd79318f8c94c022d0deb4b65d092a91fe00cf /src/framework | |
| parent | Add an event for shard updates (diff) | |
| download | serenity-be43836839a31714f58e3ffe81dd4b0aeab2ab59.tar.xz serenity-be43836839a31714f58e3ffe81dd4b0aeab2ab59.zip | |
Give hyper Response in HTTP errors
Remove the `Error::UnknownStatus` variant, and change
`Error::InvalidRequest(StatusCode)` to
`Error::UnsuccessfulRequest(hyper::Response)`. This is done to give the
user more information on why a request was unsuccessful, as before the
user did not have access to the response body or headers.
Diffstat (limited to 'src/framework')
0 files changed, 0 insertions, 0 deletions