Add Custom Error Page
Anonymous

4 years ago

It world be nice if we could use other html instead of the error page on the railway.

13 Replies

Anonymous

4 years ago

Ye, would be kool


vinceycodes
HOBBY

3 years ago

Anything on this?


Hmm, unlikely that we will pick this up. We are willing to reopen this.


fp
EMPLOYEE

2 years ago

Re-opening as I've noticed this come up a few times now so I'll just merge the others into this and we can use this to track future requests.


20k-ultra
EMPLOYEE

2 years ago

What errors are we thinking here ? Do we mean, having a custom error page when your application fails to respond ? This seems easy for us to do on our new proxy which I recommend you trying out!

However, there are a class of errors such as when we can't find a route for your application. We wouldn't be able to show your custom error page because we don't know who the request is for.

So, if we see a request for myrailwayapp.io and know it's for your project we can return a custom 500 if the upstream (your app) fails to respond. If we can't match the domain to your project we have to use the generic error.

Let me know and I'll see what I can do!


joelanman
HOBBY

2 years ago

This is a very important feature to me. At the moment if there's a problem with my app, my users see a Railway error page which links them to the dashboard. This is a) confusing branding, and b) a confusing link. I can understand this being part of the higher paid tier, but it is important to have.


20k-ultra
EMPLOYEE

2 years ago

We can create an error page for 502 Bad Gateway which we return when we can't make a connection to the app or the app connects but doesn't respond.

I'll see how I can implement this in a decently quick way.


joelanman
HOBBY

2 years ago

thanks for the quick reply! Thinking about it some more, I think maybe another solution is to be able to turn on and off the current Railway page. If off, there's simply no server response (or a 500). This might be easier to implement and I would prefer in production to the Railway branded page. While in dev or staging, the current page is helpful.


20k-ultra
EMPLOYEE

2 years ago

Disable styled responses... that works too. The styled page is helpful to provide the request ID but the request ID is also return as a header so someone could use curl to obtain that. This seems much easier than custom error pages :)


jose-verdu-diaz
HOBBY

6 months ago

Hello all! Has this been released as a feature? I would really like to use it in my project.


fvicent
PRO

4 months ago

Any news on this? I'm very interested in having a blank 500 page as well if the application fails to respond. For those who are using Railway to provide SaaS to customers it doesn't look very professional to display the Railway error page.


rafeeqshaik
PRO

4 months ago

Any news on this? Interested in custom error branding page.


asterix
PRO

2 months ago

To be honest, I'd expect this isn't implemented anytime soon because it is free advertising. Maybe differentiate on hobby and pro plans? It isn't very friendly/even confusing to show a branded page if the application doesn't respond as it should.

Even the ability for a custom error page isn't necessary, but a unbranded one would be welcome.


Loading...