Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用在 Goliath 上运行的 Grape API。目前,如果一个方法由于某种原因返回一个错误,客户端会收到一个 500 -并引发了确切的错误!
如何使 API 的输出静音并让它返回一个通用的 500 错误?