Added HttpStatus code and resource type in json object