Added parameter to set valid http codes
Added default value to avoid broken graph