Fix ApiBase::getErrorFromStatus() and ApiMessages