sindresorhus / wait-for-localhost

Wait for localhost to be ready
MIT License
273 stars 10 forks source link

Support different HTTP status codes #18

Closed fehmer closed 6 months ago

fehmer commented 6 months ago

Allow the user to specify the HTTP status codes considered as succesful response.

Currently the server has to respond with 200 to pass the check. With this change the user can specify one or multiple HTTP status codes to pass the check.