Hide unhelpful backtraces on API errors

[Finishes #54780764]