File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
sdk-api-kotlin/src/main/kotlin/dev/restate/sdk/kotlin
sdk-api/src/main/java/dev/restate/sdk
sdk-common/src/main/java/dev/restate/sdk/common Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ private constructor(
150
150
} catch (e: Throwable ) {
151
151
LOG .warn(" Error when serializing input" , e)
152
152
throw TerminalException (
153
- TerminalException .BAD_REQUEST_CODE , " Cannot serialize output: $e " )
153
+ TerminalException .INTERNAL_SERVER_ERROR_CODE , " Cannot serialize output: $e " )
154
154
}
155
155
} catch (e: Throwable ) {
156
156
callback.onCancel(e)
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public void handle(
167
167
} catch (Throwable e ) {
168
168
callback .onCancel (
169
169
new TerminalException (
170
- TerminalException .BAD_REQUEST_CODE ,
170
+ TerminalException .INTERNAL_SERVER_ERROR_CODE ,
171
171
"Cannot serialize output: " + e .getMessage ()));
172
172
return ;
173
173
}
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ public class TerminalException extends RuntimeException {
13
13
14
14
public static final int ABORTED_CODE = 409 ;
15
15
public static final int CANCELLED_CODE = ABORTED_CODE ;
16
- public static final int BAD_REQUEST_CODE = 500 ;
16
+ public static final int BAD_REQUEST_CODE = 400 ;
17
17
public static final int INTERNAL_SERVER_ERROR_CODE = 500 ;
18
18
19
19
private final int code ;
You can’t perform that action at this time.
0 commit comments