Accept health check with 204 status code
According to https://docs.railway.app/deploy/healthchecks, "Railway will wait for this endpoint to serve a 200 status code before switching traffic to your new deployment."
One of my services returns a 204 (No Content) response and it does not pass the health check. 204 indicates a successful response and some services like Strapi already have health check endpoints that return 204 on success. It would be nice if I didn't have to write my own custom health check endpoint for Railway just because of this quirk. Any response code in the [200, 299] range should be considered successful, or at the very least, both 200 and 204 should be accepted as a healthy response.
Solution:Jump to solution
this is good feedback for sure! but unfortunately this is the wrong channel, you want #🤗|feedback
6 Replies
Project ID:
38204806-70b2-434c-972d-215f6a2beec0
38204806-70b2-434c-972d-215f6a2beec0
Solution
this is good feedback for sure! but unfortunately this is the wrong channel, you want #🤗|feedback
Oh. Sorry, @Brody. Should I create one there?
yeah just copy and paste this over there
Done :)