@@ -11,38 +11,29 @@ enum class ExperimentalFaultCategory(
1111
1212 // 9xx for experimental, work-in-progress oracles
1313
14- /*
15- TODO Is this one still relevant? or subsumed by SCHEMA_INVALID_RESPONSE?
16- old comment was:
17- syntactically invalid response (eg, non-quoted text when expecting JSON. this happens in pet-clinic for example)
18- */
19- HTTP_INVALID_PAYLOAD_SYNTAX (911 , " Invalid Payload Syntax" , " rejectedWithInvalidPayloadSyntax" ,
20- " TODO" ),
21-
22-
23- HTTP_INVALID_LOCATION (912 , " Invalid Location HTTP Header" , " returnsInvalidLocationHeader" ,
24- " TODO" ),
25- HTTP_NONWORKING_DELETE (913 ," Resource Still Accessible After Successful DELETE" , " deleteDoesNotWork" ,
14+ HTTP_NONWORKING_DELETE (900 ," Resource Still Accessible After Successful DELETE" , " deleteDoesNotWork" ,
2615 " If a resource is deleted, and the API responds that such request was successful, then such" +
2716 " resource should no longer being available." +
2817 " New requests to access it should fail." +
2918 " Otherwise, if it is still possible to access the resource, then it was not really deleted." +
3019 " Then, as such, it means that the delete operation is faulty." ),
31- HTTP_REPEATED_CREATE_PUT ( 914 , " Repeated PUT Creates Resource With 201 Instead of Updating " , " repeatedCreatePut " ,
20+ HTTP_SIDE_EFFECTS_FAILED_MODIFICATION ( 901 , " A Failed PUT or PATCH Must Not Change The Resource " , " sideEffectsFailedModification " ,
3221 " TODO" ),
33- HTTP_SIDE_EFFECTS_FAILED_MODIFICATION ( 915 , " A Failed PUT or PATCH Must Not Change The Resource " , " sideEffectsFailedModification " ,
22+ HTTP_REPEATED_CREATE_PUT ( 902 , " Repeated PUT Creates Resource With 201 Instead of Updating " , " repeatedCreatePut " ,
3423 " TODO" ),
35- HTTP_PARTIAL_UPDATE_PUT ( 916 , " The Verb PUT Must Make a Full Replacement " , " partialUpdatePut " ,
24+ HTTP_MISLEADING_CREATE_PUT ( 903 , " Misleading PUT 201 Creates When Resource Already Exists " , " misleadingCreatePut " ,
3625 " TODO" ),
37- HTTP_MISLEADING_CREATE_PUT ( 917 , " If a PUT Creates a Resource, It Must Return 201 " , " misleadingCreatePut " ,
26+ HTTP_PARTIAL_UPDATE_PUT ( 904 , " The Verb PUT Must Make a Full Replacement " , " partialUpdatePut " ,
3827 " TODO" ),
39- HTTP_NON_IDEMPOTENT_PUT (918 , " PUT Implementation Must be Idempotent" , " nonIdempotentPut" ,
28+ HTTP_NON_IDEMPOTENT_PUT (905 , " PUT Implementation Must be Idempotent" , " nonIdempotentPut" ,
4029 " TODO" ),
41- HTTP_INVALID_ALLOW ( 919 , " Invalid Allow HTTP Header " , " invalidAllow " ,
30+ HTTP_INVALID_MERGE_PATCH ( 906 , " Invalid JSON Merge Patch " , " invalidMergePatch " ,
4231 " TODO" ),
43- HTTP_INVALID_MERGE_PATCH ( 920 , " Invalid JSON Merge Patch " , " invalidMergePatch " ,
32+ HTTP_INVALID_LOCATION ( 907 , " Invalid Location HTTP Header " , " returnsInvalidLocationHeader " ,
4433 " TODO" ),
45- HTTP_TIMEOUT (921 , " Request Timeout" , " requestTimeout" , " TODO" ),
34+ HTTP_INVALID_ALLOW (908 , " Invalid Allow HTTP Header" , " invalidAllow" ,
35+ " TODO" ),
36+ HTTP_TIMEOUT (909 , " Request Timeout" , " requestTimeout" , " TODO" ),
4637
4738 HTTP_STATUS_NO_NON_STANDARD_CODES (950 , " HTTP/REST-Design Violation: no-non-standard-codes" , " invalidStatusCode" , " TODO" ),
4839 HTTP_STATUS_NO_201_IF_DELETE (951 , " HTTP/REST-Design Violation: no-201-if-delete" , " 201OnDelete" , " TODO" ),
@@ -61,6 +52,15 @@ enum class ExperimentalFaultCategory(
6152 HTTP_STATUS_NO_205_IF_CONTENT (964 ," HTTP/REST-Design Violation: no-205-if-content" ," 205WhenContent" , " TODO" ),
6253 HTTP_STATUS_NO_426_IF_NO_UPGRADE (965 ," HTTP/REST-Design Violation: no-426-if-no-upgrade" ," 426MissingUpgrade" , " TODO" ),
6354
55+
56+ /*
57+ TODO Is this one still relevant? or subsumed by SCHEMA_INVALID_RESPONSE?
58+ old comment was:
59+ syntactically invalid response (eg, non-quoted text when expecting JSON. this happens in pet-clinic for example)
60+ */
61+ HTTP_INVALID_PAYLOAD_SYNTAX (929 , " Invalid Payload Syntax" , " rejectedWithInvalidPayloadSyntax" ,
62+ " TODO" ),
63+
6464 // 3xx: GraphQL
6565 GQL_ERROR_FIELD (930 , " Error Field" , " returnedErrors" ,
6666 " TODO" ),
0 commit comments