D
Deno

help

Deno Deploy: Timeout Page

Mmoif1/16/2024
Is there a way to replace the standard deno deploy timeout error page? I have a use case where I allow users to upload images and rather than try to impose some arbitrary limit on the size of the images I'd rather just give them a more accurate error message when the request times out.
DAHDeno AI Helper1/16/2024
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, it seems like you're looking to customize the error page that users see when a request times out on Deno Deploy. While I can't provide a specific solution from the documentation, I can suggest that typically, custom error handling would involve catching errors at the application level and then responding with a custom error page. If Deno Deploy has a similar mechanism, you might be able to catch timeout errors and respond with a custom message. Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice and exploring the Deno Deploy documentation or community resources for more information on custom error handling.

Looking for more? Join the community!