@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
  *
@@ -3657,7 +3657,7 @@
3657
3657
  */
3658
3658
  function getStaticContextFromError(routes, context, error) {
3659
3659
  let newContext = _extends({}, context, {
3660
- statusCode: 500,
3660
+ statusCode: isRouteErrorResponse(error) ? error.status : 500,
3661
3661
  errors: {
3662
3662
  [context._deepestRenderedBoundaryId || routes[0].id]: error
3663
3663
  }