Skip to content

Add custom :unexceptional-status option#451

Merged
dakrone merged 1 commit intodakrone:3.xfrom
mrichards42:custom-unexceptional-status
May 29, 2018
Merged

Add custom :unexceptional-status option#451
dakrone merged 1 commit intodakrone:3.xfrom
mrichards42:custom-unexceptional-status

Conversation

@mrichards42
Copy link
Copy Markdown
Contributor

I have come across a couple of cases where I need to customize which http status codes are considered exceptional but don't need to do anything else with the response. This PR allows passing a custom :unexceptional-status function in the request, as a way to handle these cases (instead of passing {:throw-exceptions false} and handling exceptions yourself).

@dakrone dakrone merged commit 76d7cfd into dakrone:3.x May 29, 2018
@dakrone
Copy link
Copy Markdown
Owner

dakrone commented May 29, 2018

Merged this, thanks @mrichards42! I think this is useful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants