You can return custom error using HttpErrors object from @loopback/rest. Please click here for more.throw new HttpErrors.UnprocessableEntity('limit is not a natural number'); 这篇关于如何修改Loopback 4中的错误消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-11 06:06