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

Allow custom success status codes #362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

emilsundberg
Copy link

Sometimes it might be useful to allow custom http status codes such as 401 which might be a password protected website that is still online.

This PR allows us to configure additional allowed http status codes:

'uptime_check' => [
        // ...
        'additional_status_codes' => [401],
]

Please let me know if this is useful for this package and I'll try to figure out how to add tests for this behaviour.

@riasvdv
Copy link
Member

riasvdv commented Sep 20, 2024

Could you add a test for this?

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