made null data status code configurable.
made serializing null values configurable