5G-MAG / rt-5gms-application-server

5G Media Streaming - Application Server
https://www.5g-mag.com/streaming
Other
4 stars 5 forks source link

Fix: Report 422 for bad purge regex #53

Closed davidjwbbc closed 1 year ago

davidjwbbc commented 1 year ago

Will return a 422 status code when the regex is malformed detailing the reported problem with the regex in the invalidParams array entry for the 'pattern' parameter.

Test M3 client will report ProblemDetail error responses (title + description) and include invalidParams from the ProblemDetail if present.

Also reports 415 status codes when the Content-Type is not as expected when a request body is expected.

Closes 5G-MAG/rt-5gms-application-server#52.