Closed devbbc closed 1 year ago
I have created a Pull Request 5G-MAG/rt-common-shared#16 to add 422 (Unprocessable Entity)
to the M3 API as a response to the purgeContentHostingCache
operation.
I have also raised 5G-MAG/Standards#40 to add this error response code (as well as a few others) to the purgeContentHostingCache
operation in the M1 RESTful API specified in 3GPP TS 26.512.
The ProblemDetails
JSON structure conveyed as the body of the HTTP error response should clearly distinguish the various error cases:
x-www-form-urlencoded
syntax.
Description
If the purge regex pattern is invalid, the Application Server raises an exception and produces a local error log. However, the Application Server returns a response with status code 200 (OK) to the invoking client.
I think the response should have status code 422 (Unprocessable Entity) indicating that there is something wrong with the request message body.
Additional context
This bug arises from 5G-MAG/rt-5gms-application-function#18.