-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate response decoders for success and failure
Now users can have separate decoders for success and failure responses. Motivation: Most of the time 5XX responses are not JSON but rather plain text or html returned by an API Gateway in front of web services. The web services can gurantee JSON content of their own but cannot control response format when they are down. Hence we need to aware of this fact and should be able to deal with such a response gracefully. Using same decoder makes it difficult hence this new change. Enjoy!
- Loading branch information
Showing
1 changed file
with
41 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters