\r\n \u003Ch1 className=\"text-foreground mt-4 text-3xl font-bold tracking-tight sm:text-4xl\">\r\n Error: {httpCode}\r\n \u003C/h1>\r\n \u003Cp className=\"text-muted-foreground mt-4\">{error.message}\u003C/p>\r\n \u003C/div>\r\n \u003C/div>\r\n );\r\n};\r\n```\r\n\r\n\n\n### Link to reproduction\n\nhttps://github.com/lukeorriss/trpc-server-error-example.git\n\n### To reproduce\n\nA production example of this can be found [https://trpc-error.orriss.dev](https://trpc-error.orriss.dev).\r\nAlternatively, the github repo: [https://github.com/lukeorriss/trpc-server-error-example.git](https://github.com/lukeorriss/trpc-server-error-example.git)\r\nTo reproduce: \r\n- create t3 stack nextjs application\r\n- force an error to be thown in the provided post.ts route example\r\n- httpStatus will be 500, regardless of specified error code. \n\n### Additional information\n\nThis was created using the T3 Stack, so this might well not be the place for this error. Please let me know if this is the case, and I will recreate it elsewhere. \n\n### 👨👧👦 Contributing\n\n- [ ] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[2942],{"name":2857,"color":2858},5935,"bug: Thrown TRPCError always returning a httpStatus code of 500. ","2025-03-20T15:42:31Z","https://github.com/trpc/trpc/issues/5935",0.6527188,{"description":2949,"labels":2950,"number":2951,"owner":2860,"repository":2860,"state":2873,"title":2952,"updated_at":2953,"url":2954,"score":2955},"### Provide environment information\n\n```\r\n System:\r\n OS: macOS 12.5.1\r\n CPU: (8) x64 Apple M1 Pro\r\n Memory: 32.37 MB / 32.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node\r\n Yarn: 1.22.17 - ~/.nvm/versions/node/v16.13.0/bin/yarn\r\n npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm\r\n Browsers:\r\n Brave Browser: 105.1.43.89\r\n Chrome: 105.0.5195.102\r\n Firefox Developer Edition: 105.0\r\n Safari: 15.6.1\r\n npmPackages:\r\n @tanstack/react-query: 4.3.4 => 4.3.4 \r\n @trpc/client: 10.0.0-proxy-alpha.75 => 10.0.0-proxy-alpha.75 \r\n @trpc/next: 10.0.0-proxy-alpha.75 => 10.0.0-proxy-alpha.75 \r\n @trpc/react: 10.0.0-proxy-alpha.75 => 10.0.0-proxy-alpha.75 \r\n @trpc/server: 10.0.0-proxy-alpha.75 => 10.0.0-proxy-alpha.75 \r\n next: 12.3.0 => 12.3.0 \r\n react: 17.0.2 => 17.0.2 \r\n```\n\n### Describe the bug\n\nit seems the result type of `createTRPCNext` is not typed correctly. Have a look at the provided codesandbox + the comments.\r\n\r\nThere is no check that the returned object \"satisfies\" the type `WithTRPCConfig`\n\n### To reproduce\n\nhttps://codesandbox.io/s/createtrpcnext-typings-6hgbuh?file=/index.ts\n\n### Additional information\n\n_No response_\n\n### 👨👧👦 Contributing\n\n- [X] 🙋♂️ Yes, I'd be down to file a PR fixing this bug!",[],2693,"bug: createTRPCNext return types","2022-10-04T00:17:53Z","https://github.com/trpc/trpc/issues/2693",0.6572219,["Reactive",2957],{},["Set"],["ShallowReactive",2960],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f6F0_xAP9FItVI_QgO1Caav2njP0xhwO3LERKvZL7NOo":-1},"/trpc/trpc/3359"]