Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add specific error class for 503s #13

Merged
merged 1 commit into from
Mar 29, 2018
Merged

Add specific error class for 503s #13

merged 1 commit into from
Mar 29, 2018

Conversation

bittersweet
Copy link
Contributor

I've also cleaned up the use of last_response versus @last_response.

The list of errors is growing, now to add one you have to make a class, a constant, and add it to the case statement. Not sure how to improve that as some of them do have some custom logic for some statuses.

If we have a custom status for 503, it's easier to ignore that specific error in our error logging if wanted.

Copy link

@iriscoopers iriscoopers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

I've also cleaned up the use of `last_response` versus `@last_response`.
@bittersweet
Copy link
Contributor Author

Thanks for checking 👍 I've Rebased because of #14 , merging!

@bittersweet bittersweet merged commit 2447f18 into master Mar 29, 2018
@bittersweet bittersweet deleted the add_503_status branch March 29, 2018 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants