[HTTP Output Failure] Encountered non-2xx HTTP code 413 {:response_code=>413, :url=>"XXXXXX:XX", :event=>#<LogStash::Event:0x3b51e9f4>}

error logs in logstash indicating http Output failure , while using http plugin , any suggestion ? error appearing intermittently

in pipeline using simple config

output {
  http {
    http_method => "post"
    url => "http //XXXXX:XX"
    codec => json
  }