Implement writeable for APIError