azos
azos copied to clipboard
Wave JSON body read error: add system code for HTTP 400 so the client can react to sending an invalid body by capturing such body and logging locally for further analysis
Related: #833
WorkContext.DoGetRequestBodyAsJsonDataMapAsync
catch(Exception error)
{
throw new HTTPStatusException(WebConsts.STATUS_400,
WebConsts.STATUS_400_DESCRIPTION + " body processing error",//<===== ADD A TAG So we can search for it
error.ToMessageWithType(),
error);
}