amzn / smoke-http

Specialised HTTP Client for service operations abstracted from the HTTP protocol.
Apache License 2.0
71 stars 15 forks source link

Correctly throw HTTPError.unauthorized #128

Closed tachyonics closed 1 year ago

tachyonics commented 1 year ago

Issue #, if available:

Description of changes: Correctly throw HTTPError.unauthorized when the forbidden error code is returned. If possible will decode the response to return the message returned.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.