StatusCode rendering in json as standalone message
Tests adjusted