FTGP-140: Refactoring of the API error types