## 🐛 Bug <!-- A clear and concise description of what the bug is. --> ### To Reproduce Setup litserve api with batch processing (max_batch_size>1) and raise HTTPexception (from fastapi) either in encode_request or decode_request. #### Code sample ``` def decode(self, output): if "error" in output: raise HTTPException(status_code=500, detail="Error processing file") return output ``` ### Expected behavior Only the request with error should return 500 and other request should return output as expected.