Resolve #2889: add HTTP-owned HTML error representations - #2898
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add an HTTP-owned, content-negotiated error representation seam so applications can serve HTML error and not-found documents without moving matching, classification, status, headers, or commit ownership into React.
Linked context: Closes #2889
Changes
@fluojs/http@fluojs/http,@fluojs/react,@fluojs/runtime, and@fluojs/testingTesting
pnpm buildpnpm typecheckpnpm lintpnpm test— 386 files, 4608 passed, 1 skippedpnpm verify:docspnpm verify:platform-consistency-governancepnpm verify:release-readiness@fluojs/httpbuild and LSP diagnosticsPortability evidence:
packages/testing/src/portability/error-representation-portability.tspackages/testing/src/portability/error-representation-abort-portability.tspackages/testing/src/portability/http-adapter-portability.test.tspackages/testing/src/portability/web-runtime-adapter-portability.test.tsThe optional strict audit script could not run because it requires
typescript/unstable/*APIs unavailable in the repository'stypescript@6.0.2; canonical typecheck, lint/TSDoc, tests, governance, and release-readiness checks passed.Release impact
Public export documentation
@param/@returnstags where applicable.@exampleblocks and README scenario examples still play complementary roles.New HTTP and React representation seams include source TSDoc and package README scenarios.
Behavioral contract
The HTTP matcher and dispatcher remain authoritative. Canonical JSON error behavior remains the API fallback, and committed/aborted/post-shell phases are not rewritten.
Platform consistency governance (SSOT)
createPlatformConformanceHarness(...)for platform component contracts orcreateHttpAdapterPortabilityHarness(...)for HTTP adapter portability contracts.The portability harness and supported adapter suites cover JSON/HTML selection and lifecycle behavior.