Clause 4.3.5.2 specifies the use of the HTTP response code 422 (Unprocessable Entity) in the error case where the media type of a Content Preparation Template is not supported by the 5GMS AF. The OpenAPI YAML at clause C.3.3 does not include this response code.
Clause 7.6.4.3 specifies the use of the HTTP response code 422 (Unprocessable Entity) in the error case where the regular expression for cache purging is syntactically malformed. The OpenAPI YAML at clause C.3.5 is consistent with this specification.
Description
General consensus (e.g. here) is that usage of the HTTP response code 422 (Unprocessable Entity) should be limited to WebDAV and that 400 (Bad Request) is likely to be more appropriate in most cases, despite that fact that this latter response code is more intended to signal a malformed HTTP request than a malformed message body.
Suggested solution
Respecify the use of 400 (Bad Request) in clause 4.3.5.2 and add this to the Content Preparation Templates creation operation in clause C.3.3.
Respecify the use of 400 (Bad Request) in clause 7.6.4.2 and modify the cache purge operation in clause C.3.5 for consistency.
Context
In TS 26.512 V17.6.0:
Description
General consensus (e.g. here) is that usage of the HTTP response code 422 (Unprocessable Entity) should be limited to WebDAV and that 400 (Bad Request) is likely to be more appropriate in most cases, despite that fact that this latter response code is more intended to signal a malformed HTTP request than a malformed message body.
Suggested solution