Skip to content

Modify invalid Snippet response status codes

Vijay Hawoldar requested to merge vij-snippet-status-codes into master

What does this MR do?

The Snippets::BaseService currently handles invalid parameters by returning a ServiceResponse with a status code of 403 (forbidden).

This status doesn't feel applicable in these scenarios, so this MR is to adjust the status to a 422 (Unprocessable Entity) and add some test coverage.

Conformity

Availability and Testing

Edited by Vijay Hawoldar

Merge request reports

Loading