Initial mapping of JsonParseException -- for invalid JSON that cannot be parsed -- is to HTTP 200 with ErrorCode.INVALID_REQUEST_NOT_JSON.
But it would make more sense to actually indicate it as HTTP 400 (same ErrorCode) since we cannot actually process is at all, the criteria for returning 200/OK.
Initial mapping of
JsonParseException
-- for invalid JSON that cannot be parsed -- is to HTTP 200 withErrorCode.INVALID_REQUEST_NOT_JSON
. But it would make more sense to actually indicate it as HTTP 400 (sameErrorCode
) since we cannot actually process is at all, the criteria for returning 200/OK.