Return proper html status code when there is no content