[api_docs] fix error handling in article types and articles controllers