Skip to content

Commit 7d03fdb

Browse files
authored
chore: use 500 on failed io read per PR feedback
1 parent ebcd99a commit 7d03fdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/api/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func handleSubmitTx(c *gin.Context) {
122122
if err != nil {
123123
// Log the error, return an error to the user, and increment failed count
124124
logger.Errorf("failed to read request body: %s", err)
125-
c.String(400, "failed to read request body")
125+
c.String(500, "failed to read request body")
126126
_ = ginmetrics.GetMonitor().GetMetric("tx_failure_count").Inc(nil)
127127
return
128128
}

0 commit comments

Comments
 (0)