There are several root causes that could all result in either one of those error pages.
Would you be able to provide a bit more detail about your application, maybe some error logs or a service id? Feel free to open a support ticket if you don’t want to share that information in a public forum.