made some fixes to generating api error texts since some 500 can in fact contain _api_errors_ from ocean