Initial implementation of API errors data structure