@remix-run/router 0.0.0-experimental-e7ce8959 → 0.0.0-experimental-add6f8aa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @remix-run/router v0.0.0-experimental-e7ce8959
2
+ * @remix-run/router v0.0.0-experimental-add6f8aa
3
3
  *
4
4
  * Copyright (c) Remix Software Inc.
5
5
  *
@@ -3655,7 +3655,7 @@ function createStaticHandler(routes, opts) {
3655
3655
  */
3656
3656
  function getStaticContextFromError(routes, context, error) {
3657
3657
  let newContext = _extends({}, context, {
3658
- statusCode: 500,
3658
+ statusCode: isRouteErrorResponse(error) ? error.status : 500,
3659
3659
  errors: {
3660
3660
  [context._deepestRenderedBoundaryId || routes[0].id]: error
3661
3661
  }