django rest framework - What's a simple way to raise ValidationError in action-decorated method? -
I think my decoration work may be able to increase the validation error in some cases. How do I return 400 error with json in a simple way, or at least error?
OK, I thought it: I should take an APIException, which enclose detailed message in Jason is.
Comments
Post a Comment