DRF: How to define a custom error message for UnsupportedMediaType exception during parsing

前端 未结 0 1850
旧巷少年郎
旧巷少年郎 2020-12-14 20:44

Question

What\'s the easiest way to define a custom error message when an \'Unsupported media type\' error is raised by a Django Rest Framework parse

相关标签:
回答
  • 消灭零回复
提交回复
热议问题