Skip to content

Add status code to splash page errors#2070

Draft
victorlin wants to merge 2 commits into
masterfrom
victorlin/add-error-status
Draft

Add status code to splash page errors#2070
victorlin wants to merge 2 commits into
masterfrom
victorlin/add-error-status

Conversation

@victorlin

Copy link
Copy Markdown
Member

Closes #2068

Checklist

victorlin and others added 2 commits June 9, 2026 16:55
In addition to response text and status text, keep the numeric HTTP
status on FetchError.
Thread the structured status from failed fetches through the splash-page
error path. goTo404 now accepts the status from FetchError, general
state stores it next to the existing error message, and the default
splash component renders the actual status code when one is available.

Also preserve the status from the splash page's getAvailable request,
since that request can fail independently of dataset loading. Document
the new errorStatus prop for custom splash components.

Code and commit message written by Codex

Co-authored-by: Codex <codex@openai.com>

@jameshadfield jameshadfield left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think these are valuable improvements.

There are additional places FetchErrors are handled, such as loadSidecars, and it'd be nice to use the extra status-code information for them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve splash page errors

2 participants