Writing status code and content type.
Simplified serializer by reducing number of methods.