refactor(httpx): drop duplicate WriteError, add WriteInternal
This commit is contained in:
@@ -22,3 +22,13 @@ func WriteError(w http.ResponseWriter, status int, code dto.ErrorCode, message,
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
func WriteInternal(w http.ResponseWriter, requestID string) {
|
||||
WriteError(
|
||||
w,
|
||||
http.StatusInternalServerError,
|
||||
dto.ErrorCodeInternalError,
|
||||
"internal server error",
|
||||
requestID,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user