R
Railway•15mo ago
Josso Ares

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:
this is good feedback for sure! but unfortunately this is the wrong channel, you want #🤗|feedback
Jump to solution
6 Replies
Percy
Percy•15mo ago
Project ID: 38204806-70b2-434c-972d-215f6a2beec0
Josso Ares
Josso AresOP•15mo ago
38204806-70b2-434c-972d-215f6a2beec0
Solution
Brody
Brody•15mo ago
this is good feedback for sure! but unfortunately this is the wrong channel, you want #🤗|feedback
Josso Ares
Josso AresOP•15mo ago
Oh. Sorry, @Brody. Should I create one there?
Brody
Brody•15mo ago
yeah just copy and paste this over there
Josso Ares
Josso AresOP•15mo ago
Done :)
Want results from more Discord servers?
Add your server