Welcome to mirror list, hosted at ThFree Co, Russian Federation.

template_app_sharepoint_http.yaml « sharepoint_http « app « templates - github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e06c6c040211938c828d4a3e0956db97b8795a27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
zabbix_export:
  version: '6.2'
  date: '2022-04-06T19:59:10Z'
  groups:
    -
      uuid: a571c0d144b14fd4a87a9d9b2aa9fcd6
      name: Templates/Applications
  templates:
    -
      uuid: 8d5fe5b4ebb64255a2429b34c7dd3681
      template: 'Microsoft SharePoint by HTTP'
      name: 'Microsoft SharePoint by HTTP'
      description: |
        Overview:
        Template receives data via HTTP Agent.
        Setup:
        Create a new host.
        Define macros according to your Sharepoint web portal.
        It is recommended to fill in the values of the filter macros to avoid getting redundant data.
        
        
        Template tooling version used: 0.41
      groups:
        -
          name: Templates/Applications
      items:
        -
          uuid: 71e23c666b84414490589a509b60c488
          name: 'Sharepoint: Get directory structure'
          type: SCRIPT
          key: sharepoint.get_dir
          delay: '{$SHAREPOINT.GET_INTERVAL}'
          history: '0'
          trends: '0'
          value_type: TEXT
          params: |
            try {
            
                const js_start = new Date().getTime();
            
                var params = JSON.parse(value);
                var result = {
                    status: 0,
                    data: {}
                };
            
                var req = new HttpRequest();
            
                var out = {};
                var queue = [];
            
                var node;
                var obj_iter_by_name;
                var cpath;
            
                var current_folder;
                var child_folders;
                var child_files;
                var obj_iter_file;
            
                req.addHeader('Accept: application/json; odata=verbose');
                req.setHttpAuth(HTTPAUTH_NTLM, params.user, params.password);
                queue.push({
                    patch: params.root,
                    json: []
                });
            
                while (queue.length) {
                    node = queue.pop();
                    obj_iter_by_name = out;
                    cpath = node.json.slice()
            
                    current_folder = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')")));
            
                    result.status = req.getStatus();
                    if (result.status != 200) {
                        throw result.status;
                    }
            
                    cpath.forEach(function (nd) {
                        obj_iter_by_name = obj_iter_by_name[nd]
                    });
            
                    obj_iter_by_name[current_folder.d.Name] = {
                        meta: {
                            size: 0,
                            created: Math.round(new Date(current_folder.d.TimeCreated).getTime() / 1000),
                            modified: Math.round(new Date(current_folder.d.TimeLastModified).getTime() / 1000)
                        },
                        data: {}
                    }
            
                    child_folders = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Folders")));
            
                    cpath.push(current_folder.d.Name, "data");
                    child_folders.d.results.forEach(function (dir) {
                        queue.push({
                            patch: dir.ServerRelativeUrl,
                            json: cpath
                        });
                    });
            
                    child_files = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Files")));
                    child_files.d.results.forEach(function (file) {
                        obj_iter_by_name[current_folder.d.Name].data[file.Name] = {
                            meta: {
                                size: file.Length,
                                created: Math.round(new Date(file.TimeCreated).getTime() / 1000),
                                modified: Math.round(new Date(file.TimeLastModified).getTime() / 1000)
                            }
                        };
            
                        obj_iter_file = out;
                        cpath.forEach(function (nd) {
                            obj_iter_file = obj_iter_file[nd];
                            if (nd != "data") {
                                obj_iter_file.meta.size += +file.Length;
                            }
                        });
                    });
            
                }
            
                result.data = out;
            
            } catch (error) {
                Zabbix.log(3, "Sharepoint fs scan failed: " + params.url + " Error: " + error);
                if (!Number.isInteger(error))
                    result.status = 520;
            }
            
            result.time = new Date().getTime() - js_start;
            return JSON.stringify(result);
          description: 'Used to get directory structure information'
          preprocessing:
            -
              type: CHECK_NOT_SUPPORTED
              parameters:
                - ''
              error_handler: CUSTOM_VALUE
              error_handler_params: '{"status":520,"data":{},"time":0}'
          parameters:
            -
              name: root
              value: '{$SHAREPOINT.ROOT}'
            -
              name: password
              value: '{$SHAREPOINT.PASSWORD}'
            -
              name: url
              value: '{$SHAREPOINT.URL}'
            -
              name: user
              value: '{$SHAREPOINT.USER}'
          tags:
            -
              tag: component
              value: raw
        -
          uuid: cd47c3d00ce545b0a557e0e68c89d53e
          name: 'Sharepoint: Get directory structure: Status'
          type: DEPENDENT
          key: sharepoint.get_dir.status
          delay: '0'
          history: 7d
          description: 'HTTP response (status) code. Indicates whether the HTTP request was successfully completed. Additional information is available in the server log file.'
          valuemap:
            name: 'HTTP response status code'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.status
              error_handler: CUSTOM_ERROR
              error_handler_params: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: sharepoint.get_dir
          tags:
            -
              tag: component
              value: application
            -
              tag: component
              value: health
          triggers:
            -
              uuid: ed1d66a1410e4af79af462e749ce979b
              expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.get_dir.status)<>200'
              name: 'Sharepoint: Error getting directory structure.'
              priority: WARNING
              description: 'Error getting directory structure. Check the Zabbix server log for more details.'
              tags:
                -
                  tag: scope
                  value: availability
        -
          uuid: b2daa471665541168b2a394b9b226d73
          name: 'Sharepoint: Get directory structure: Exec time'
          type: DEPENDENT
          key: sharepoint.get_dir.time
          delay: '0'
          history: 7d
          units: '!ms'
          description: 'The time taken to execute the script for obtaining the data structure (in ms). Less is better.'
          preprocessing:
            -
              type: JSONPATH
              parameters:
                - $.time
              error_handler: CUSTOM_ERROR
              error_handler_params: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          master_item:
            key: sharepoint.get_dir
          tags:
            -
              tag: component
              value: performance
          triggers:
            -
              uuid: 9e5bcc08d5f040de86afa38f5a653dd7
              expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.get_dir.time)>2000'
              name: 'Sharepoint: Server responds slowly to API request'
              priority: WARNING
              tags:
                -
                  tag: scope
                  value: performance
        -
          uuid: 7b59d767712f49b3bbc17947999ca944
          name: 'Sharepoint: Health score'
          type: HTTP_AGENT
          key: sharepoint.health_score
          history: 7d
          authtype: NTLM
          username: '{$SHAREPOINT.USER}'
          password: '{$SHAREPOINT.PASSWORD}'
          description: 'This item specifies a value between 0 and 10, where 0 represents a low load and a high ability to process requests and 10 represents a high load and that the server is throttling requests to maintain adequate throughput.'
          preprocessing:
            -
              type: REGEX
              parameters:
                - 'X-SharePointHealthScore\b:\s(\d+)'
                - \1
            -
              type: IN_RANGE
              parameters:
                - '0'
                - '10'
              error_handler: DISCARD_VALUE
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 3h
          url: '{$SHAREPOINT.URL}'
          retrieve_mode: HEADERS
          request_method: HEAD
          tags:
            -
              tag: component
              value: health
          triggers:
            -
              uuid: 3a0451e3edda4a73aded57aa254fd813
              expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.health_score)>"{$SHAREPOINT.MAX_HEALT_SCORE}"'
              name: 'Sharepoint: Bad health score'
              priority: AVERAGE
              tags:
                -
                  tag: scope
                  value: performance
      discovery_rules:
        -
          uuid: 0fe7e8e5480a42b7903cb7ac9bf931cc
          name: 'Directory discovery'
          type: SCRIPT
          key: sharepoint.directory.discovery
          delay: '{$SHAREPOINT.LLD_INTERVAL}'
          params: |
            try {
            
                var params = JSON.parse(value);
                var result = [];
            
                var req = new HttpRequest();
            
                var queue = [];
            
                var node;
                var current_folder;
                var child_folders;
                var child_files;
            
                req.addHeader('Accept: application/json; odata=verbose');
                req.setHttpAuth(HTTPAUTH_NTLM, params.user, params.password);
                queue.push({
                    patch: params.root,
                    json_query: '$["data"]'
                });
            
                while (queue.length) {
                    node = queue.pop();
            
                    current_folder = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')")));
            
                    result.status = req.getStatus();
                    if (result.status != 200) {
                        throw result.status;
                    }
            
                    result.push({
                        '{#SHAREPOINT.LLD.NAME}': current_folder.d.Name,
                        '{#SHAREPOINT.LLD.TYPE}': 'FOLDER',
                        '{#SHAREPOINT.LLD.FULL_PATH}': node.patch,
                        '{#SHAREPOINT.LLD.JSON_PATH}': node.json_query + '["' + current_folder.d.Name + '"]',
                        '{#SHAREPOINT.LLD.SIZE}': 0,
                        '{#SHAREPOINT.LLD.CREATED}': Math.round(new Date(current_folder.d.TimeCreated).getTime() / 1000),
                        '{#SHAREPOINT.LLD.MODIFIED}': Math.round(new Date(current_folder.d.TimeLastModified).getTime() / 1000)
                    });
            
                    child_folders = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Folders")));
            
                    child_folders.d.results.forEach(function (dir) {
                        queue.push({
                            patch: dir.ServerRelativeUrl,
                            json_query: node.json_query + '["' + current_folder.d.Name + '"]["data"]'
                        });
                    });
            
                    child_files = JSON.parse(req.get(encodeURI(params.url + "/_api/web/GetFolderByServerRelativeUrl('" + node.patch.replace("'", "''") + "')/Files")));
                    child_files.d.results.forEach(function (file) {
                        result.push({
                            '{#SHAREPOINT.LLD.NAME}': file.Name,
                            '{#SHAREPOINT.LLD.TYPE}': 'FILE',
                            '{#SHAREPOINT.LLD.FULL_PATH}': file.ServerRelativeUrl,
                            '{#SHAREPOINT.LLD.JSON_PATH}': node.json_query + '["' + current_folder.d.Name + '"]' + '["data"]["' + file.Name + '"]',
                            '{#SHAREPOINT.LLD.SIZE}': file.Length,
                            '{#SHAREPOINT.LLD.CREATED}': Math.round(new Date(file.TimeCreated).getTime() / 1000),
                            '{#SHAREPOINT.LLD.MODIFIED}': Math.round(new Date(file.TimeLastModified).getTime() / 1000)
                        });
                    });
                }
            
            } catch (error) {
                Zabbix.log(3, "Sharepoint fs discovery failed: " + params.url + " Error: " + error);
                return "Sharepoint fs discovery failed: " + params.url + " Error: " + error;
            }
            
            return JSON.stringify(result);
          filter:
            evaltype: AND
            conditions:
              -
                macro: '{#SHAREPOINT.LLD.NAME}'
                value: '{$SHAREPOINT.LLD.FILTER.NAME.MATCHES}'
                formulaid: C
              -
                macro: '{#SHAREPOINT.LLD.NAME}'
                value: '{$SHAREPOINT.LLD.FILTER.NAME.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: D
              -
                macro: '{#SHAREPOINT.LLD.FULL_PATH}'
                value: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.MATCHES}'
                formulaid: A
              -
                macro: '{#SHAREPOINT.LLD.FULL_PATH}'
                value: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: B
              -
                macro: '{#SHAREPOINT.LLD.TYPE}'
                value: '{$SHAREPOINT.LLD.FILTER.TYPE.MATCHES}'
                formulaid: E
              -
                macro: '{#SHAREPOINT.LLD.TYPE}'
                value: '{$SHAREPOINT.LLD.FILTER.TYPE.NOT_MATCHES}'
                operator: NOT_MATCHES_REGEX
                formulaid: F
          item_prototypes:
            -
              uuid: 337493ed37424be98abd4c0550279a0b
              name: 'Sharepoint: Created ({#SHAREPOINT.LLD.FULL_PATH})'
              type: DEPENDENT
              key: 'sharepoint.created["{#SHAREPOINT.LLD.FULL_PATH}"]'
              delay: '0'
              history: 7d
              units: unixtime
              description: |
                Date of creation:
                {#SHAREPOINT.LLD.FULL_PATH}
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.created'
                  error_handler: DISCARD_VALUE
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: sharepoint.get_dir
              tags:
                -
                  tag: component
                  value: storage
                -
                  tag: full-path
                  value: '{#SHAREPOINT.LLD.FULL_PATH}'
            -
              uuid: b230bfba317e4d2eb2c6a816bd357d71
              name: 'Sharepoint: Modified ({#SHAREPOINT.LLD.FULL_PATH})'
              type: DEPENDENT
              key: 'sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"]'
              delay: '0'
              history: 7d
              units: unixtime
              description: |
                Date of change:
                {#SHAREPOINT.LLD.FULL_PATH}
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.modified'
                  error_handler: DISCARD_VALUE
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 3h
              master_item:
                key: sharepoint.get_dir
              tags:
                -
                  tag: component
                  value: storage
                -
                  tag: full-path
                  value: '{#SHAREPOINT.LLD.FULL_PATH}'
              trigger_prototypes:
                -
                  uuid: d1683e2fcdda45969ff451e43ae696c2
                  expression: 'last(/Microsoft SharePoint by HTTP/sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"],#1)<>last(/Microsoft SharePoint by HTTP/sharepoint.modified["{#SHAREPOINT.LLD.FULL_PATH}"],#2)'
                  name: 'Sharepoint: Sharepoint object is changed'
                  opdata: '{#SHAREPOINT.LLD.FULL_PATH}'
                  priority: INFO
                  description: 'Updated date of modification of folder / file'
                  manual_close: 'YES'
                  tags:
                    -
                      tag: scope
                      value: notice
            -
              uuid: 68c3d2d2b33a494ab85ca6b883398fbb
              name: 'Sharepoint: Size ({#SHAREPOINT.LLD.FULL_PATH})'
              type: DEPENDENT
              key: 'sharepoint.size["{#SHAREPOINT.LLD.FULL_PATH}"]'
              delay: '0'
              history: 7d
              units: B
              description: |
                Size of:
                {#SHAREPOINT.LLD.FULL_PATH}
              preprocessing:
                -
                  type: JSONPATH
                  parameters:
                    - '{{#SHAREPOINT.LLD.JSON_PATH}.regsub("(.*)", \1)}.meta.size'
                  error_handler: DISCARD_VALUE
                -
                  type: DISCARD_UNCHANGED_HEARTBEAT
                  parameters:
                    - 24h
              master_item:
                key: sharepoint.get_dir
              tags:
                -
                  tag: component
                  value: storage
                -
                  tag: full-path
                  value: '{#SHAREPOINT.LLD.FULL_PATH}'
          parameters:
            -
              name: password
              value: '{$SHAREPOINT.PASSWORD}'
            -
              name: root
              value: '{$SHAREPOINT.ROOT}'
            -
              name: url
              value: '{$SHAREPOINT.URL}'
            -
              name: user
              value: '{$SHAREPOINT.USER}'
          preprocessing:
            -
              type: DISCARD_UNCHANGED_HEARTBEAT
              parameters:
                - 6h
      tags:
        -
          tag: class
          value: software
        -
          tag: target
          value: microsoft
        -
          tag: target
          value: sharepoint
      macros:
        -
          macro: '{$SHAREPOINT.GET_INTERVAL}'
          value: 1m
        -
          macro: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.MATCHES}'
          value: ^/
          description: 'Filter of discoverable dictionaries by full path.'
        -
          macro: '{$SHAREPOINT.LLD.FILTER.FULL_PATH.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered dictionaries by full path.'
        -
          macro: '{$SHAREPOINT.LLD.FILTER.NAME.MATCHES}'
          value: '.*'
          description: 'Filter of discoverable dictionaries by name.'
        -
          macro: '{$SHAREPOINT.LLD.FILTER.NAME.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered dictionaries by name.'
        -
          macro: '{$SHAREPOINT.LLD.FILTER.TYPE.MATCHES}'
          value: FOLDER
          description: 'Filter of discoverable types.'
        -
          macro: '{$SHAREPOINT.LLD.FILTER.TYPE.NOT_MATCHES}'
          value: CHANGE_IF_NEEDED
          description: 'Filter to exclude discovered types.'
        -
          macro: '{$SHAREPOINT.LLD_INTERVAL}'
          value: 3h
        -
          macro: '{$SHAREPOINT.MAX_HEALT_SCORE}'
          value: '5'
          description: |
            Must be in the range from 0 to 10
            in details: https://docs.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-wsshp/c60ddeb6-4113-4a73-9e97-26b5c3907d33
        -
          macro: '{$SHAREPOINT.PASSWORD}'
          type: SECRET_TEXT
        -
          macro: '{$SHAREPOINT.ROOT}'
          value: '/Shared Documents'
        -
          macro: '{$SHAREPOINT.URL}'
          description: 'Portal page URL. For example http://sharepoint.companyname.local/'
        -
          macro: '{$SHAREPOINT.USER}'
      valuemaps:
        -
          uuid: 70add725d6a84f6f9ed0917107dfffc9
          name: 'HTTP response status code'
          mappings:
            -
              value: '100'
              newvalue: Continue
            -
              value: '101'
              newvalue: 'Switching Protocols'
            -
              value: '102'
              newvalue: Processing
            -
              value: '200'
              newvalue: OK
            -
              value: '201'
              newvalue: Created
            -
              value: '202'
              newvalue: Accepted
            -
              value: '203'
              newvalue: 'Non-Authoritative Information'
            -
              value: '204'
              newvalue: 'No Content'
            -
              value: '205'
              newvalue: 'Reset Content'
            -
              value: '206'
              newvalue: 'Partial Content'
            -
              value: '207'
              newvalue: Multi-Status
            -
              value: '208'
              newvalue: 'Already Reported'
            -
              value: '226'
              newvalue: 'IM Used'
            -
              value: '300'
              newvalue: 'Multiple Choices'
            -
              value: '301'
              newvalue: 'Moved Permanently'
            -
              value: '302'
              newvalue: Found
            -
              value: '303'
              newvalue: 'See Other'
            -
              value: '304'
              newvalue: 'Not Modified'
            -
              value: '305'
              newvalue: 'Use Proxy'
            -
              value: '306'
              newvalue: 'Switch Proxy'
            -
              value: '307'
              newvalue: 'Temporary Redirect'
            -
              value: '308'
              newvalue: 'Permanent Redirect/Resume Incomplete'
            -
              value: '400'
              newvalue: 'Bad Request'
            -
              value: '401'
              newvalue: Unauthorized
            -
              value: '402'
              newvalue: 'Payment Required'
            -
              value: '403'
              newvalue: Forbidden
            -
              value: '404'
              newvalue: 'Not Found'
            -
              value: '405'
              newvalue: 'Method Not Allowed'
            -
              value: '406'
              newvalue: 'Not Acceptable'
            -
              value: '407'
              newvalue: 'Proxy Authentication Required'
            -
              value: '408'
              newvalue: 'Request Timeout'
            -
              value: '409'
              newvalue: Conflict
            -
              value: '410'
              newvalue: Gone
            -
              value: '411'
              newvalue: 'Length Required'
            -
              value: '412'
              newvalue: 'Precondition Failed'
            -
              value: '413'
              newvalue: 'Payload Too Large'
            -
              value: '414'
              newvalue: 'Request-URI Too Long'
            -
              value: '415'
              newvalue: 'Unsupported Media Type'
            -
              value: '416'
              newvalue: 'Requested Range Not Satisfiable'
            -
              value: '417'
              newvalue: 'Expectation Failed'
            -
              value: '418'
              newvalue: 'I''m a Teapot'
            -
              value: '419'
              newvalue: 'Authentication Timeout'
            -
              value: '420'
              newvalue: 'Method Failure/Enhance Your Calm'
            -
              value: '421'
              newvalue: 'Misdirected Request'
            -
              value: '422'
              newvalue: 'Unprocessable Entity'
            -
              value: '423'
              newvalue: Locked
            -
              value: '424'
              newvalue: 'Failed Dependency'
            -
              value: '426'
              newvalue: 'Upgrade Required'
            -
              value: '428'
              newvalue: 'Precondition Required'
            -
              value: '429'
              newvalue: 'Too Many Requests'
            -
              value: '431'
              newvalue: 'Request Header Fields Too Large'
            -
              value: '440'
              newvalue: 'Login Timeout'
            -
              value: '444'
              newvalue: 'No Response'
            -
              value: '449'
              newvalue: 'Retry With'
            -
              value: '450'
              newvalue: 'Blocked by Windows Parental Controls'
            -
              value: '451'
              newvalue: 'Unavailable for Legal Reasons/Redirect'
            -
              value: '494'
              newvalue: 'Request Header Too Large'
            -
              value: '495'
              newvalue: 'Cert Error'
            -
              value: '496'
              newvalue: 'No Cert'
            -
              value: '497'
              newvalue: 'HTTP to HTTPS'
            -
              value: '498'
              newvalue: 'Token Expired/Invalid'
            -
              value: '499'
              newvalue: 'Client Closed Request/Token Required'
            -
              value: '500'
              newvalue: 'Internal Server Error'
            -
              value: '501'
              newvalue: 'Not Implemented'
            -
              value: '502'
              newvalue: 'Bad Gateway'
            -
              value: '503'
              newvalue: 'Service Unavailable'
            -
              value: '504'
              newvalue: 'Gateway Timeout'
            -
              value: '505'
              newvalue: 'HTTP Version Not Supported'
            -
              value: '506'
              newvalue: 'Variant Also Negotiates'
            -
              value: '507'
              newvalue: 'Insufficient Storage'
            -
              value: '508'
              newvalue: 'Loop Detected'
            -
              value: '509'
              newvalue: 'Bandwidth Limit Exceeded'
            -
              value: '510'
              newvalue: 'Not Extended'
            -
              value: '511'
              newvalue: 'Network Authentication Required'
            -
              value: '520'
              newvalue: 'Unknown Error'
            -
              value: '598'
              newvalue: 'Network Read Timeout Error'
            -
              value: '599'
              newvalue: 'Network Connect Timeout Error'