Only return an error when the payload is invalid in weblogging