Skip to content

Conversation

@emilsundberg
Copy link
Contributor

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
Contributor

riasvdv commented Sep 20, 2024

Could you add a test for this?

@emilsundberg
Copy link
Contributor Author

@riasvdv I've added tests and updated the example in the readme as well.

@riasvdv riasvdv merged commit fa0b682 into spatie:main Oct 20, 2024
@riasvdv
Copy link
Contributor

riasvdv commented Oct 20, 2024

Thanks!

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