I want to change the JSON, which rest_framework or django returns when a validation error occures.
I will use one of my views as example, but I want to change error mess
The easiest way to change the error style through all the view in your application is to always use serializer.is_valid(raise_exception=True), and then implement a custom exception handler that defines how the error response is created.
serializer.is_valid(raise_exception=True)