aboutsummaryrefslogtreecommitdiff
path: root/examples/06_command_framework
diff options
context:
space:
mode:
authorZeyla Hellyer <[email protected]>2017-02-11 21:10:20 -0800
committerZeyla Hellyer <[email protected]>2017-02-11 21:10:20 -0800
commit7e254c5c6098bb1a47bac26c9895098a46cdc53f (patch)
treed8adb2ff9d709ae32f12286f1432996011367cbf /examples/06_command_framework
parentUpdate voice example to latest changes (diff)
downloadserenity-7e254c5c6098bb1a47bac26c9895098a46cdc53f.tar.xz
serenity-7e254c5c6098bb1a47bac26c9895098a46cdc53f.zip
Handle unsuccessful responses before decoding
Instead of assuming every request is successful, check that the class of the status is successful (2xx), and if not, return a `ClientError::InvalidRequest`, which is a renamed `ClientError::UnexpectedStatusCode`.
Diffstat (limited to 'examples/06_command_framework')
0 files changed, 0 insertions, 0 deletions