-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return correct error variants for API errors
Previously, the generated code did not properly take into account the HTTP status of error responses. We would either return *Error::UnknownError (if the response message was set) or a serde error otherwise. With this patch, we map the status codes to the corresponding error variants and skip deserialization if the response body is empty. Fixes: #30
- Loading branch information
1 parent
bd34dbf
commit 7a6732a
Showing
4 changed files
with
1,627 additions
and
190 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
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
Oops, something went wrong.